PushMessage

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

Constructors

Link copied to clipboard
constructor(@NonNull pushBundle: Bundle)
Create a new PushMessage
constructor(@NonNull data: Map<String, String>)
Create a new PushMessage

Properties

Link copied to clipboard
val EXTRA_ACTIONS: String = "com.urbanairship.actions"
The actions extra key holds the payload of actions to be performed with the push.
Link copied to clipboard
val EXTRA_ALERT: String = "com.urbanairship.push.ALERT"
The alert extra holds the string sent in the "alert" field of an Airship Push Notification.
Link copied to clipboard
val EXTRA_CATEGORY: String = "com.urbanairship.category"
The extra key for the category of the notification.
Link copied to clipboard
val EXTRA_DELIVERY_PRIORITY: String = "com.urbanairship.priority"
The extra key for the delivery priority.
Link copied to clipboard
val EXTRA_EXPIRATION: String = "com.urbanairship.push.EXPIRATION"
The EXPIRATION extra is a time expressed in seconds since the Epoch after which, if specified, the notification should not be delivered.
Link copied to clipboard
val EXTRA_FOREGROUND_DISPLAY: String = "com.urbanairship.foreground_display"
The extra key to control the notification display in the foreground.
Link copied to clipboard
val EXTRA_ICON: String = "com.urbanairship.icon"
The extra key indicates the name of an icon to use from an app's drawable resources.
Link copied to clipboard
val EXTRA_ICON_COLOR: String = "com.urbanairship.icon_color"
The extra key indicates the icon color.
Link copied to clipboard
val EXTRA_IN_APP_MESSAGE: String = "com.urbanairship.in_app"
The extra key for the the legacy in-app message payload.
Link copied to clipboard
val EXTRA_INTERACTIVE_ACTIONS: String = "com.urbanairship.interactive_actions"
The extra key for the payload of Airship actions to be run when an interactive notification action button is opened.
Link copied to clipboard
val EXTRA_INTERACTIVE_TYPE: String = "com.urbanairship.interactive_type"
The extra key for the interactive notification group that will be displayed with a push.
Link copied to clipboard
val EXTRA_LIVE_UPDATE: String = "com.urbanairship.live_update"
The Live Update payload.
Link copied to clipboard
val EXTRA_LOCAL_ONLY: String = "com.urbanairship.local_only"
The extra key indicates if the notification should only be displayed on the device.
Link copied to clipboard
val EXTRA_METADATA: String = "com.urbanairship.metadata"
The push metadata extra holds the encrypted push identifiers sent in an Airship Push Notification.
Link copied to clipboard
val EXTRA_NOTIFICATION_CHANNEL: String = "com.urbanairship.notification_channel"
The extra key for the channel to be used when posting a notification.
Link copied to clipboard
val EXTRA_NOTIFICATION_TAG: String = "com.urbanairship.notification_tag"
The extra key for the tag to be used when posting a notification.
Link copied to clipboard
val EXTRA_PRIORITY: String = "com.urbanairship.priority"
The extra key for the priority of the notification.
Link copied to clipboard
val EXTRA_PUBLIC_NOTIFICATION: String = "com.urbanairship.public_notification"
The extra key for the public notification payload.
Link copied to clipboard
val EXTRA_PUSH_ID: String = "com.urbanairship.push.CANONICAL_PUSH_ID"
The push ID extra is the ID assigned to a push at the time it is sent.
Link copied to clipboard
The rich push extra that contains the rich push message ID.
Link copied to clipboard
val EXTRA_SEND_ID: String = "com.urbanairship.push.PUSH_ID"
The push ID extra holds the unique push ID sent in an Airship Push Notification.
Link copied to clipboard
val EXTRA_SOUND: String = "com.urbanairship.sound"
The extra key for the sound of the notification.
Link copied to clipboard
val EXTRA_STYLE: String = "com.urbanairship.style"
The extra key for the style of the notification.
Link copied to clipboard
val EXTRA_SUMMARY: String = "com.urbanairship.summary"
The extra key for the summary of the notification.
Link copied to clipboard
val EXTRA_TITLE: String = "com.urbanairship.title"
The extra key for the title of the notification.
Link copied to clipboard
val EXTRA_VISIBILITY: String = "com.urbanairship.visibility"
The extra key for the notification's visibility in the lockscreen.
Link copied to clipboard
val EXTRA_WEARABLE: String = "com.urbanairship.wearable"
The extra key for the wearable payload.
Link copied to clipboard
Constant for the extra EXTRA_DELIVERY_PRIORITY that indicates the push is high priority.
Link copied to clipboard
@get:NonNull
open val pushBundle: Bundle

Inherited properties

Link copied to clipboard

Functions

Link copied to clipboard
Checks the message for Airship keys.
Link copied to clipboard
open fun containsKey(@NonNull key: String): Boolean
Checks if the push message contains a key.
Link copied to clipboard
open fun describeContents(): Int
Link copied to clipboard
open fun equals(@Nullable o: Any): Boolean
Link copied to clipboard
Creates a push message from a json value.
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
open fun getExtra(@NonNull key: String, @NonNull defaultValue: String): String
Gets an extra from the push bundle.
Link copied to clipboard
open fun getIcon(@NonNull context: Context, defaultIcon: Int): Int
Gets the notification icon image.
Link copied to clipboard
open fun getIconColor(defaultColor: Int): Int
Gets the notification icon color.
Link copied to clipboard
Gets the notification actions payload.
Link copied to clipboard
Gets the notification action button type.
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.
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 the notification tag that should be used when posting the notification.
Link copied to clipboard
open fun getPriority(): Int
Gets the priority of the notification.
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
open fun getSound(@NonNull context: Context): Uri
Gets the sound of the notification.
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
open fun getVisibility(): Int
Gets the visibility of the notification for the lockscreen.
Link copied to clipboard
Gets the wearable payload.
Link copied to clipboard
open fun hashCode(): Int
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
Returns if the notification should be displayed or suppressed in the foreground.
Link copied to clipboard
open fun isLocalOnly(): Boolean
Checks if the notification should only be displayed on the device.
Link copied to clipboard
Checks if the message is to update remote-data or not.
Link copied to clipboard
Returns the objects represented as a JsonValue.
Link copied to clipboard
open fun toString(): String
Link copied to clipboard
open fun writeToParcel(@NonNull dest: Parcel, flags: Int)