Package 

Interface PushMessage

    • Method Detail

      • has

         abstract Boolean has(String key)

        Checks whether the message data contains the specified key.

        Parameters:
        key - Key to check for.
      • data

         abstract String data(String key)

        Retrieves the data associated with the specified key.

        Parameters:
        key - Key to retrieve the value for.
      • recordAction

         abstract Unit recordAction(Context context)

        Records an action event occurrence for the message.

        Parameters:
        context - Context to record the action in.
      • recordAction

         abstract Unit recordAction(Context context, Integer buttonIndex)

        Records an action event occurrence for a specific button index.

        Parameters:
        context - Context to record the action in.
        buttonIndex - Index of the button to record the action for.
      • getSound

         abstract String getSound()

        Message sound. Default is "default". Other sounds are specified as URIs from app resources.

      • getLink

         abstract Uri getLink()

        Default link to open for the message.

      • getMedia

         abstract URL getMedia()

        Media URL associated with the message (e.g., JPEG or PNG image).

      • getDataKeys

         abstract Set<String> getDataKeys()

        Set of all data keys in the message, including standard keys like "title" or "message".

      • getType

         abstract MessageType getType()

        Type of the message. Possible values: TEXT, CAROUSEL, RATING, BANNER, TIMER.

      • getDismissLabel

         abstract String getDismissLabel()

        Label for the dismiss button in Android notifications.