Package com.segment.analytics.messages
Class ScreenMessage
java.lang.Object
com.segment.analytics.messages.ScreenMessage
- All Implemented Interfaces:
Message
The screen call lets you record whenever a user sees a screen, along with any properties about
the screen.
Use builder(java.lang.String)
to construct your own instances.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.segment.analytics.messages.Message
Message.Type
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ScreenMessage.Builder
Start building anScreenMessage
instance.abstract String
name()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.segment.analytics.messages.Message
anonymousId, context, integrations, messageId, sentAt, timestamp, type, userId
-
Constructor Details
-
ScreenMessage
public ScreenMessage()
-
-
Method Details
-
builder
Start building anScreenMessage
instance.- Parameters:
name
- The name of the screen the user is on.- Throws:
IllegalArgumentException
- if the screen name is null or empty- See Also:
-
name
-
properties
-
toBuilder
-