-
- All Implemented Interfaces:
public class SinchPush
-
-
Method Summary
Modifier and Type Method Description final static BooleanisSinchPushPayload(Map<String, String> payload)Inspects the payload to decide if it contains Sinch call notification 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 payload to decide if it contains Sinch call notification data.
- Parameters:
payload- Data received with a 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 data
-
setPayloadResultMapper
final static Unit setPayloadResultMapper(PushPayloadResultMapper pushPayloadResultMapper)
-
-
-
-