Package com.segment.analytics.messages
Class ScreenMessage
java.lang.Object
com.segment.analytics.messages.ScreenMessage
- All Implemented Interfaces:
Message
public abstract class ScreenMessage extends Object implements 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:
- Screen
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ScreenMessage.Builder
Fluent API for creatingScreenMessage
instances.Nested classes/interfaces inherited from interface com.segment.analytics.messages.Message
Message.Type
-
Constructor Summary
Constructors Constructor Description ScreenMessage()
-
Method Summary
Modifier and Type Method Description static ScreenMessage.Builder
builder(String name)
Start building anScreenMessage
instance.abstract String
name()
abstract Map<String,?>
properties()
ScreenMessage.Builder
toBuilder()
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, 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
-
name
-
properties
-
toBuilder
-