Package-level declarations

Types

Link copied to clipboard
data class Message : Parcelable
Link copied to clipboard
class MessageIdUpdatedEvent(val messageId: String, val notificationId: Int) : SdkEvent
Link copied to clipboard
sealed class MessageUtils
Link copied to clipboard
class NotificationClickEvent(notificationEvent: NotificationEvent, val actionType: String, val actionItemId: String, val title: String?) : NotificationEvent
Link copied to clipboard
Link copied to clipboard
open class NotificationEvent(val source: Int, val destinations: Int, val buId: String, val notificationMessage: NotificationMessage) : PushEvent

Notification event

Link copied to clipboard
data class NotificationMessage : Parcelable
Link copied to clipboard
@RestrictTo(value = [RestrictTo.Scope.LIBRARY])
class NotificationMessageAccessor
Link copied to clipboard
Link copied to clipboard
data class ParsedData(val source: Int, val destinations: Int, val buId: String?)

Helper method to parse a Base64 encoded string into its component parts Expected format: source:destination:buId

Link copied to clipboard
class PushCapabilityEvent(val isPushSdkEnabled: Boolean, val hasSystemPermissions: Boolean) : PushEvent

This event is used to track the capability of the push SDK to receive push notifications.

Link copied to clipboard
abstract class PushEvent(sticky: Boolean = false) : SdkEvent

Push event base class.

Link copied to clipboard
object PushKeys
Link copied to clipboard
class PushNotificationErrorEvent(val error: PushException, val messageId: String) : PushEvent
Link copied to clipboard
class PushReceivedEvent(val notificationEvent: NotificationEvent, val receivedTimestamp: Long, val sentTimestamp: Long, val messageType: String?, val pushData: Map<String, String>?) : NotificationEvent
Link copied to clipboard
class PushTokenRefreshedEvent(val token: String, val src: ModuleIdentifier = ModuleIdentifier.PUSH_FEATURE_MODULE) : PushEvent
Link copied to clipboard
data class Region : Parcelable, Comparable<Region>
Link copied to clipboard
class RegionNotificationEvent(val notificationMessage: NotificationMessage) : SdkEvent

Event published when a region-based notification needs to be displayed. This event is used to decouple region messaging (geofence/proximity) from notification display.

Link copied to clipboard
class ShouldShowNotificationDecisionEvent(val message: NotificationMessage, val messageShown: Boolean) : PushEvent
Link copied to clipboard
class SilentPushEvent(val pushData: Map<String, String>, val receivedTimestamp: Long = System.currentTimeMillis()) : PushEvent

Event published when a silent/sync push message is received. This event is specifically for push messages which are silent

Functions

Link copied to clipboard
fun NotificationMessage.asNotificationClickEvent(base64EncodedData: String? = this.context, receivedTimestamp: Long = System.currentTimeMillis(), sentTimestamp: Long = System.currentTimeMillis(), actionType: String, actionItemId: String, title: String?): NotificationClickEvent

Direct extension to create a NotificationClickEvent from a NotificationMessage Uses toNotificationEvent() for base event and adds actionType, actionItemId, and title

Link copied to clipboard
fun NotificationMessage.asNotificationDisplayedEvent(base64EncodedData: String? = this.context, receivedTimestamp: Long = System.currentTimeMillis(), sentTimestamp: Long = System.currentTimeMillis()): NotificationDisplayedEvent

Direct extension to create a NotificationDisplayedEvent from a NotificationMessage Uses toNotificationEvent() to create the base event

Link copied to clipboard
fun NotificationMessage.asNotificationOpenEvent(base64EncodedData: String? = this.context, receivedTimestamp: Long = System.currentTimeMillis(), sentTimestamp: Long = System.currentTimeMillis()): NotificationOpenEvent

Direct extension to create a NotificationOpenEvent from a NotificationMessage Uses toNotificationEvent() to create the base event

Link copied to clipboard
fun NotificationMessage.asPushReceivedEvent(base64EncodedData: String? = this.context, receivedTimestamp: Long = System.currentTimeMillis(), sentTimestamp: Long = System.currentTimeMillis(), messageType: String?, pushData: Map<String, String>?): PushReceivedEvent

Direct extension to create a PushReceivedEvent from a NotificationMessage Uses toNotificationEvent() for base event and adds receivedTimestamp, sentTimestamp, and messageType

Link copied to clipboard
fun SdkEvent.isNotificationEventForDestination(destination: Int): Boolean
Link copied to clipboard
fun parseBase64EncodedData(base64EncodedData: String?): ParsedData
Link copied to clipboard

Extension function to check if a SilentPushEvent should be handled for ENGAGEMENT destination.

Link copied to clipboard
fun NotificationEvent.toNotificationClickEvent(actionType: String, actionItemId: String, title: String?): NotificationClickEvent
Link copied to clipboard
fun NotificationMessage.toNotificationEvent(base64EncodedData: String? = this.context, receivedTimestamp: Long = System.currentTimeMillis(), sentTimestamp: Long = System.currentTimeMillis()): NotificationEvent

Extension function to create a PushReceivedEvent from a NotificationMessage Parses a Base64 encoded string to extract source, destination, mid, and tenantid

Link copied to clipboard
fun NotificationEvent.toPushReceivedEvent(receivedTimestamp: Long, sentTimestamp: Long, messageType: String?, pushData: Map<String, String>?): PushReceivedEvent