PushMessage

A push message, usually created from handling a message intent from either FCM, or another push notification service

Constructors

Link copied to clipboard
constructor(pushBundle: Bundle)

Create a new PushMessage

constructor(data: Map<String, String>)

Create a new PushMessage

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Gets the push message's actions.

Link copied to clipboard

Gets the notification alert

Link copied to clipboard

Gets the message's canonical push ID

Link copied to clipboard

Gets the category of the notification.

Link copied to clipboard

Gets the notification actions payload.

Link copied to clipboard

Gets the notification action button type.

Link copied to clipboard

Checks if the push is from Accengage or not.

Link copied to clipboard

Checks if the push is from Accengage and has content or not.

Link copied to clipboard

Checks if the push is from Airship or not.

Link copied to clipboard

Checks if the expiration exists and is expired

Link copied to clipboard

Returns if the notification should be displayed or suppressed in the foreground.

Link copied to clipboard

Checks if the notification should only be displayed on the device.

Link copied to clipboard

Checks if the message is ping or not

Link copied to clipboard

Gets the Live Update payload, if present.

Link copied to clipboard

Gets the push send metadata.

Link copied to clipboard

Returns the notification channel that should be used when posting the notification.

Link copied to clipboard

Returns the notification tag that should be used when posting the notification.

Link copied to clipboard

Gets the priority of the notification. Defaults to 0.

Link copied to clipboard

Gets the public notification payload.

Link copied to clipboard

Gets the rich push message ID

Link copied to clipboard

Gets the push send ID

Link copied to clipboard

Gets the style payload of the notification.

Link copied to clipboard

Gets the summary of the notification.

Link copied to clipboard

Gets the title of the notification.

Link copied to clipboard

Gets the visibility of the notification for the lockscreen. Defaults to 1 (VISIBILITY_PUBLIC).

Link copied to clipboard

Gets the wearable payload.

Functions

Link copied to clipboard

Checks the message for Airship keys.

Link copied to clipboard

Checks if the push message contains a key.

Link copied to clipboard
open override fun describeContents(): Int
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
fun getExtra(key: String): String?
fun getExtra(key: String, defaultValue: String): String

Gets an extra from the push bundle.

Link copied to clipboard
fun getIcon(context: Context, defaultIcon: Int): Int

Gets the notification icon image.

Link copied to clipboard
fun getIconColor(defaultColor: Int): Int

Gets the notification icon color.

Link copied to clipboard
fun getNotificationChannel(defaultChannel: String?): String?

Returns the notification channel that should be used when posting the notification or the default channel if its not defined.

Link copied to clipboard

Returns a bundle of all the push extras

Link copied to clipboard
fun getSound(context: Context): Uri?

Gets the sound of the notification.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toJsonValue(): JsonValue

Returns the objects represented as a JsonValue.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open override fun writeToParcel(dest: Parcel, flags: Int)