Interface PKPushRegistryDelegate


  • public interface PKPushRegistryDelegate
    • Method Detail

      • pushRegistryDidInvalidatePushTokenForType

        default void pushRegistryDidInvalidatePushTokenForType​(PKPushRegistry registry,
                                                               java.lang.String type)
        pushRegistry:didInvalidatePushTokenForType: 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.
        Parameters:
        registry - The PKPushRegistry instance responsible for the delegate callback.
        type - This is a PKPushType constant which is present in [registry desiredPushTypes].
      • pushRegistryDidReceiveIncomingPushWithPayloadForType

        default void pushRegistryDidReceiveIncomingPushWithPayloadForType​(PKPushRegistry registry,
                                                                          PKPushPayload payload,
                                                                          java.lang.String type)
        pushRegistry:didReceiveIncomingPushWithPayload:forType: This method is invoked when a push notification has been received for the specified PKPushType.
        Parameters:
        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].
      • pushRegistryDidUpdatePushCredentialsForType

        void pushRegistryDidUpdatePushCredentialsForType​(PKPushRegistry registry,
                                                         PKPushCredentials pushCredentials,
                                                         java.lang.String type)
        pushRegistry:didUpdatePushCredentials:forType: This method is invoked when new credentials (including push token) have been received for the specified PKPushType.
        Parameters:
        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].
      • pushRegistryDidReceiveIncomingPushWithPayloadForTypeWithCompletionHandler

        default void pushRegistryDidReceiveIncomingPushWithPayloadForTypeWithCompletionHandler​(PKPushRegistry registry,
                                                                                               PKPushPayload payload,
                                                                                               java.lang.String type,
                                                                                               PKPushRegistryDelegate.Block_pushRegistryDidReceiveIncomingPushWithPayloadForTypeWithCompletionHandler completion)
        pushRegistry:didReceiveIncomingPushWithPayload:forType:withCompletionHandler: This method is invoked when a push notification has been received for the specified PKPushType.
        Parameters:
        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.