Package apple.pushkit

Class PKPushRegistry

  • All Implemented Interfaces:
    NSObject

    public class PKPushRegistry
    extends NSObject
    PKPushRegistry An instance of this class can be used to register for 3rd party notifications. The supported push notification types are listed above as PKPushType constants.
    • Constructor Detail

      • PKPushRegistry

        protected PKPushRegistry​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • version_static

        public static long version_static()
      • delegate

        public PKPushRegistryDelegate delegate()
        [@property] delegate Setting a delegate is required to receive device push tokens and incoming pushes.
      • desiredPushTypes

        public NSSet<java.lang.String> desiredPushTypes()
        [@property] desiredPushTypes An app requests registration for various types of pushes by setting this NSSet to the desired PKPushType constants. Push tokens and notifications will be delivered via delegate callback.
      • initWithQueue

        public PKPushRegistry initWithQueue​(NSObject queue)
        initWithQueue: Instantiates a PKPushRegistry with a delegate callback dispatch queue.
        Parameters:
        queue - All delegate callbacks are performed asynchronously by PKPushRegistry on this queue.
        Returns:
        A PKPushRegistry instance that can be used to register for push tokens and notifications for supported push types.
      • pushTokenForType

        public NSData pushTokenForType​(java.lang.String type)
        pushTokenForType: Access the locally cached push token for a specified PKPushType. A push token returned here has previously been given to the delegate via handlePushTokenUpdate:forType: callback.
        Parameters:
        type - This is a PKPushType constant that is already in desiredPushTypes.
        Returns:
        Returns the push token that can be used to send pushes to the device for the specified PKPushType. Returns nil if no push token is available for this PKPushType at the time of invocation.
      • setDelegate_unsafe

        public void setDelegate_unsafe​(PKPushRegistryDelegate value)
        [@property] delegate Setting a delegate is required to receive device push tokens and incoming pushes.
      • setDelegate

        public void setDelegate​(PKPushRegistryDelegate value)
        [@property] delegate Setting a delegate is required to receive device push tokens and incoming pushes.
      • setDesiredPushTypes

        public void setDesiredPushTypes​(NSSet<java.lang.String> value)
        [@property] desiredPushTypes An app requests registration for various types of pushes by setting this NSSet to the desired PKPushType constants. Push tokens and notifications will be delivered via delegate callback.