Package com.sinch.android.rtc
Object SinchPush
-
- All Implemented Interfaces:
public class SinchPushSinchPush object provides methods for accessing Push Notifications functionalities.
-
-
Method Summary
Modifier and Type Method Description final static BooleanisSinchPushPayload(Map<String, String> payload)Inspects the push payload to decide if it contains valid CallNotificationResult data. final static CallNotificationResultqueryPushNotificationPayload(Context context, Map<String, String> payload)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. final static UnitsetPayloadResultMapper(PushPayloadResultMapper pushPayloadResultMapper)-
-
Method Detail
-
isSinchPushPayload
final static Boolean isSinchPushPayload(Map<String, String> payload)
Inspects the push payload to decide if it contains valid CallNotificationResult data.
- Parameters:
payload- Data as received from FCM or HMS RemoteMessage.
-
queryPushNotificationPayload
final static CallNotificationResult queryPushNotificationPayload(Context context, Map<String, String> payload)
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.
- Parameters:
context- Application context to load native libraries used for payload parsing.payload- Payload received from a RemoteMessage.
-
setPayloadResultMapper
final static Unit setPayloadResultMapper(PushPayloadResultMapper pushPayloadResultMapper)
-
-
-
-