public interface PKPushRegistryDelegate
| Modifier and Type | Interface and Description |
|---|---|
static interface |
PKPushRegistryDelegate.Block_pushRegistryDidReceiveIncomingPushWithPayloadForTypeWithCompletionHandler |
| Modifier and Type | Method and Description |
|---|---|
default void |
pushRegistryDidInvalidatePushTokenForType(PKPushRegistry registry,
java.lang.String type)
pushRegistry:didInvalidatePushTokenForType:
|
default void |
pushRegistryDidReceiveIncomingPushWithPayloadForType(PKPushRegistry registry,
PKPushPayload payload,
java.lang.String type)
pushRegistry:didReceiveIncomingPushWithPayload:forType:
|
default void |
pushRegistryDidReceiveIncomingPushWithPayloadForTypeWithCompletionHandler(PKPushRegistry registry,
PKPushPayload payload,
java.lang.String type,
PKPushRegistryDelegate.Block_pushRegistryDidReceiveIncomingPushWithPayloadForTypeWithCompletionHandler completion)
pushRegistry:didReceiveIncomingPushWithPayload:forType:withCompletionHandler:
|
void |
pushRegistryDidUpdatePushCredentialsForType(PKPushRegistry registry,
PKPushCredentials pushCredentials,
java.lang.String type)
pushRegistry:didUpdatePushCredentials:forType:
|
default void pushRegistryDidInvalidatePushTokenForType(PKPushRegistry registry, java.lang.String type)
This method is invoked if a previously provided push token is no longer valid for use. No action is necessary to rerequest registration. This feedback can be used to update an app's server to no longer send push notifications of the specified type to this device.
registry - The PKPushRegistry instance responsible for the delegate callback.type - This is a PKPushType constant which is present in [registry desiredPushTypes].default void pushRegistryDidReceiveIncomingPushWithPayloadForType(PKPushRegistry registry, PKPushPayload payload, java.lang.String type)
This method is invoked when a push notification has been received for the specified PKPushType.
registry - The PKPushRegistry instance responsible for the delegate callback.payload - The push payload sent by a developer via APNS server API.type - This is a PKPushType constant which is present in [registry desiredPushTypes].void pushRegistryDidUpdatePushCredentialsForType(PKPushRegistry registry, PKPushCredentials pushCredentials, java.lang.String type)
This method is invoked when new credentials (including push token) have been received for the specified PKPushType.
registry - The PKPushRegistry instance responsible for the delegate callback.pushCredentials - The push credentials that can be used to send pushes to the device for the specified PKPushType.type - This is a PKPushType constant which is present in [registry desiredPushTypes].default void pushRegistryDidReceiveIncomingPushWithPayloadForTypeWithCompletionHandler(PKPushRegistry registry, PKPushPayload payload, java.lang.String type, PKPushRegistryDelegate.Block_pushRegistryDidReceiveIncomingPushWithPayloadForTypeWithCompletionHandler completion)
This method is invoked when a push notification has been received for the specified PKPushType.
registry - The PKPushRegistry instance responsible for the delegate callback.payload - The push payload sent by a developer via APNS server API.type - This is a PKPushType constant which is present in [registry desiredPushTypes].completion - This completion handler should be called to signify the completion of payload processing.