sinch-rtc

# SinchPush

object SinchPush

SinchPush object provides methods for accessing Push Notifications functionalities.

## Functions

isSinchPushPayload
Link copied to clipboard
@JvmStatic
fun isSinchPushPayload(payload: Map<String, String>): Boolean

Inspects the push payload to decide if it contains valid CallNotificationResult data.

queryPushNotificationPayload
Link copied to clipboard
@JvmStatic
fun queryPushNotificationPayload(context: Context, payload: Map<String, String>): CallNotificationResult

Method used to parse push payload and retrieve CallNotificationResult mainly to provide a way to check initial call information that came with the push message before deciding how to process it and whether to forward it to SinchClient.relayRemotePushNotification.

setPayloadResultMapper
Link copied to clipboard
@JvmStatic
fun setPayloadResultMapper(pushPayloadResultMapper: PushPayloadResultMapper)