Package

## Object SinchPush

- All Implemented Interfaces:

      public class SinchPush

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `public final static SinchPush` | `INSTANCE` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---

  - ### Enum Constant Summary

    Enum Constants
    Enum Constant | Description
    --- | ---

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `final static Boolean` | `isSinchPushPayload(Map<String, String> payload)` | Inspects the payload to decide if it contains Sinch call notification data.
    `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.
    `final static Unit` | `setPayloadResultMapper(PushPayloadResultMapper pushPayloadResultMapper)` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

  - ### 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)