public class ScreenView extends AbstractSelfDescribing
| Modifier and Type | Field and Description |
|---|---|
String |
activityClassName
Name of the Activity subclass.
|
String |
activityTag
Tag of the Activity subclass.
|
String |
fragmentClassName
Name of the Fragment subclass.
|
String |
fragmentTag
Tag of the Fragment subclass.
|
String |
id
Identifier of the screen.
|
String |
name
Name of the screen.
|
String |
previousId
Identifier of the previous screen.
|
String |
previousName
Name of the previous screen.
|
String |
previousType
Type of the previous screen.
|
String |
transitionType
Type of transition between previous and current screen.
|
String |
type
Type of screen.
|
customContexts, trueTimestamp| Constructor and Description |
|---|
ScreenView(String name)
Creates a ScreenView event.
|
ScreenView(String name,
UUID screenId)
Creates a ScreenView event.
|
| Modifier and Type | Method and Description |
|---|---|
ScreenView |
activityClassName(String activityClassName)
Name of the Activity subclass.
|
ScreenView |
activityTag(String activityTag)
Tag of the Activity subclass.
|
static ScreenView |
buildWithActivity(Activity activity)
Creates a ScreenView event using the data of an Activity class.
|
static ScreenView |
buildWithFragment(Fragment fragment)
Creates a ScreenView event using the data of an Fragment class.
|
ScreenView |
fragmentClassName(String fragmentClassName)
Name of the Fragment subclass.
|
ScreenView |
fragmentTag(String fragmentTag)
Tag of the Fragment subclass.
|
Map<String,Object> |
getDataPayload() |
String |
getSchema() |
ScreenView |
previousId(String previousId)
Identifier of the previous screen.
|
ScreenView |
previousName(String previousName)
Name of the previous screen.
|
ScreenView |
previousType(String previousType)
Type of the previous screen.
|
ScreenView |
transitionType(String transitionType)
Type of transition between previous and current screen.
|
ScreenView |
type(String type)
Type of screen.
|
beginProcessing, contexts, endProcessing, getContexts, getTrueTimestamp, trueTimestamp@NonNull public final String name
@NonNull public final String id
@Nullable public String type
@Nullable public String previousName
@Nullable public String previousId
@Nullable public String previousType
@Nullable public String transitionType
@Nullable public String fragmentClassName
@Nullable public String fragmentTag
@Nullable public String activityClassName
@Nullable public String activityTag
public ScreenView(@NonNull
String name)
name - Name of the screen.@NonNull public static ScreenView buildWithActivity(@NonNull Activity activity)
@NonNull public static ScreenView buildWithFragment(@NonNull Fragment fragment)
@NonNull public ScreenView type(@Nullable String type)
@NonNull public ScreenView previousName(@Nullable String previousName)
@NonNull public ScreenView previousId(@Nullable String previousId)
@NonNull public ScreenView previousType(@Nullable String previousType)
@NonNull public ScreenView transitionType(@Nullable String transitionType)
@NonNull public ScreenView fragmentClassName(@Nullable String fragmentClassName)
@NonNull public ScreenView fragmentTag(@Nullable String fragmentTag)
@NonNull public ScreenView activityClassName(@Nullable String activityClassName)
@NonNull public ScreenView activityTag(@Nullable String activityTag)
@NonNull public String getSchema()
getSchema in class AbstractSelfDescribing