Class PageMessage

  • All Implemented Interfaces:
    Message

    public abstract class PageMessage
    extends java.lang.Object
    implements Message
    The page call lets you record whenever a user sees a page of your website, along with any properties about the page.

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

    See Also:
    Page
    • Constructor Detail

      • PageMessage

        public PageMessage()
    • Method Detail

      • builder

        public static PageMessage.Builder builder​(java.lang.String name)
        Start building an PageMessage instance.
        Parameters:
        name - The name of the page the user is on.
        Throws:
        java.lang.IllegalArgumentException - if the page name is null or empty
        See Also:
        Page
      • name

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

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

        @Nullable
        public abstract java.lang.String category()