Class TrackMessage

  • All Implemented Interfaces:
    Message

    public abstract class TrackMessage
    extends java.lang.Object
    implements Message
    The track API call is how you record any actions your users perform, along with any properties that describe the action.

    Use builder(java.lang.String) to construct your own instances.

    See Also:
    Track
    • Constructor Detail

      • TrackMessage

        public TrackMessage()
    • Method Detail

      • builder

        public static TrackMessage.Builder builder​(java.lang.String event)
        Start building an TrackMessage instance.
        Parameters:
        event - The event is the name of the action that a user has performed.
        Throws:
        java.lang.IllegalArgumentException - if the event name is null or empty
        See Also:
        Track Event
      • event

        public abstract java.lang.String event()
      • properties

        @Nullable
        public abstract java.util.Map<java.lang.String,​?> properties()