Class CKNotificationInfo

  • All Implemented Interfaces:
    NSCoding, NSCopying, NSSecureCoding, NSObject

    public class CKNotificationInfo
    extends NSObject
    implements NSSecureCoding, NSCopying
    CKNotificationInfo The payload of a push notification delivered in the UIApplication @c application:didReceiveRemoteNotification: delegate method contains information about the firing subscription. Use @code +[CKNotification notificationFromRemoteNotificationDictionary:] @endcode to parse that payload. On tvOS, alerts, badges, sounds, and categories are not handled in push notifications. However, CKSubscriptions remain available to help you avoid polling the server.
    • Constructor Detail

      • CKNotificationInfo

        protected CKNotificationInfo​(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()
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • version_static

        public static long version_static()
      • alertActionLocalizationKey

        public java.lang.String alertActionLocalizationKey()
        A key for a localized string to be used as the alert action in a modal style notification.
      • alertBody

        public java.lang.String alertBody()
        Optional alert string to display in a push notification.
      • alertLaunchImage

        public java.lang.String alertLaunchImage()
        The name of an image in your app bundle to be used as the launch image when launching in response to the notification.
      • alertLocalizationArgs

        public NSArray<java.lang.String> alertLocalizationArgs()
        A list of field names to take from the matching record that is used as substitution variables in a formatted alert string.
      • alertLocalizationKey

        public java.lang.String alertLocalizationKey()
        Instead of a raw alert string, you may optionally specify a key for a localized string in your app's Localizable.strings file.
      • category

        public java.lang.String category()
        Optional property for the category to be sent with the push when this subscription fires. Categories allow you to present custom actions to the user on your push notifications.
        See Also:
        UIMutableUserNotificationCategory
      • copyWithZone

        public java.lang.Object copyWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        copyWithZone in interface NSCopying
      • desiredKeys

        public NSArray<java.lang.String> desiredKeys()
        A list of keys from the matching record to include in the notification payload. Only some keys are allowed. The value types associated with those keys on the server must be one of these classes: - CKReference - CLLocation - NSDate - NSNumber - NSString
      • setAlertActionLocalizationKey

        public void setAlertActionLocalizationKey​(java.lang.String value)
        A key for a localized string to be used as the alert action in a modal style notification.
      • setAlertBody

        public void setAlertBody​(java.lang.String value)
        Optional alert string to display in a push notification.
      • setAlertLaunchImage

        public void setAlertLaunchImage​(java.lang.String value)
        The name of an image in your app bundle to be used as the launch image when launching in response to the notification.
      • setAlertLocalizationArgs

        public void setAlertLocalizationArgs​(NSArray<java.lang.String> value)
        A list of field names to take from the matching record that is used as substitution variables in a formatted alert string.
      • setAlertLocalizationKey

        public void setAlertLocalizationKey​(java.lang.String value)
        Instead of a raw alert string, you may optionally specify a key for a localized string in your app's Localizable.strings file.
      • setCategory

        public void setCategory​(java.lang.String value)
        Optional property for the category to be sent with the push when this subscription fires. Categories allow you to present custom actions to the user on your push notifications.
        See Also:
        UIMutableUserNotificationCategory
      • setDesiredKeys

        public void setDesiredKeys​(NSArray<java.lang.String> value)
        A list of keys from the matching record to include in the notification payload. Only some keys are allowed. The value types associated with those keys on the server must be one of these classes: - CKReference - CLLocation - NSDate - NSNumber - NSString
      • setShouldBadge

        public void setShouldBadge​(boolean value)
        Indicates that the notification should increment the app's badge count. Default value is @c NO.
      • setShouldSendContentAvailable

        public void setShouldSendContentAvailable​(boolean value)
        Indicates that the notification should be sent with the "content-available" flag to allow for background downloads in the application. Default value is @c NO.
      • setSoundName

        public void setSoundName​(java.lang.String value)
        The name of a sound file in your app bundle to play upon receiving the notification.
      • shouldBadge

        public boolean shouldBadge()
        Indicates that the notification should increment the app's badge count. Default value is @c NO.
      • shouldSendContentAvailable

        public boolean shouldSendContentAvailable()
        Indicates that the notification should be sent with the "content-available" flag to allow for background downloads in the application. Default value is @c NO.
      • soundName

        public java.lang.String soundName()
        The name of a sound file in your app bundle to play upon receiving the notification.
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
      • collapseIDKey

        public java.lang.String collapseIDKey()
        Optional property specifying a field name to take from the matching record whose value is used as the apns-collapse-id header.
        See Also:
        Notification API documentation
      • setCollapseIDKey

        public void setCollapseIDKey​(java.lang.String value)
        Optional property specifying a field name to take from the matching record whose value is used as the apns-collapse-id header.
        See Also:
        Notification API documentation
      • setShouldSendMutableContent

        public void setShouldSendMutableContent​(boolean value)
        Indicates that the notification should be sent with the "mutable-content" flag to allow a Notification Service app extension to modify or replace the push payload. Default value is @c NO.
      • setSubtitle

        public void setSubtitle​(java.lang.String value)
        Optional subtitle of the alert to display in a push notification.
      • setSubtitleLocalizationArgs

        public void setSubtitleLocalizationArgs​(NSArray<java.lang.String> value)
        A list of field names to take from the matching record that is used as substitution variables in a formatted subtitle string.
      • setSubtitleLocalizationKey

        public void setSubtitleLocalizationKey​(java.lang.String value)
        Instead of a raw subtitle string, you may optionally specify a key for a localized string in your app's Localizable.strings file.
      • setTitle

        public void setTitle​(java.lang.String value)
        Optional title of the alert to display in a push notification.
      • setTitleLocalizationArgs

        public void setTitleLocalizationArgs​(NSArray<java.lang.String> value)
        A list of field names to take from the matching record that is used as substitution variables in a formatted title string.
      • setTitleLocalizationKey

        public void setTitleLocalizationKey​(java.lang.String value)
        Instead of a raw title string, you may optionally specify a key for a localized string in your app's Localizable.strings file.
      • shouldSendMutableContent

        public boolean shouldSendMutableContent()
        Indicates that the notification should be sent with the "mutable-content" flag to allow a Notification Service app extension to modify or replace the push payload. Default value is @c NO.
      • subtitle

        public java.lang.String subtitle()
        Optional subtitle of the alert to display in a push notification.
      • subtitleLocalizationArgs

        public NSArray<java.lang.String> subtitleLocalizationArgs()
        A list of field names to take from the matching record that is used as substitution variables in a formatted subtitle string.
      • subtitleLocalizationKey

        public java.lang.String subtitleLocalizationKey()
        Instead of a raw subtitle string, you may optionally specify a key for a localized string in your app's Localizable.strings file.
      • title

        public java.lang.String title()
        Optional title of the alert to display in a push notification.
      • titleLocalizationArgs

        public NSArray<java.lang.String> titleLocalizationArgs()
        A list of field names to take from the matching record that is used as substitution variables in a formatted title string.
      • titleLocalizationKey

        public java.lang.String titleLocalizationKey()
        Instead of a raw title string, you may optionally specify a key for a localized string in your app's Localizable.strings file.