Package apple.cloudkit
Class CKNotificationInfo
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.cloudkit.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.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCKNotificationInfo(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean_supportsSecureCoding()This property must return YES on all classes that allow secure coding.static booleanaccessInstanceVariablesDirectly()java.lang.StringalertActionLocalizationKey()A key for a localized string to be used as the alert action in a modal style notification.java.lang.StringalertBody()Optional alert string to display in a push notification.java.lang.StringalertLaunchImage()The name of an image in your app bundle to be used as the launch image when launching in response to the notification.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.java.lang.StringalertLocalizationKey()Instead of a raw alert string, you may optionally specify a key for a localized string in your app's Localizable.strings file.static CKNotificationInfoalloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)java.lang.Stringcategory()Optional property for the category to be sent with the push when this subscription fires.static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()java.lang.StringcollapseIDKey()Optional property specifying a field name to take from the matching record whose value is used as the apns-collapse-id header.java.lang.ObjectcopyWithZone(org.moe.natj.general.ptr.VoidPtr zone)static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()NSArray<java.lang.String>desiredKeys()A list of keys from the matching record to include in the notification payload.voidencodeWithCoder(NSCoder coder)static longhash_static()CKNotificationInfoinit()CKNotificationInfoinitWithCoder(NSCoder coder)NS_DESIGNATED_INITIALIZERstatic NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)static java.lang.Objectnew_objc()static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidsetAlertActionLocalizationKey(java.lang.String value)A key for a localized string to be used as the alert action in a modal style notification.voidsetAlertBody(java.lang.String value)Optional alert string to display in a push notification.voidsetAlertLaunchImage(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.voidsetAlertLocalizationArgs(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.voidsetAlertLocalizationKey(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.voidsetCategory(java.lang.String value)Optional property for the category to be sent with the push when this subscription fires.voidsetCollapseIDKey(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.voidsetDesiredKeys(NSArray<java.lang.String> value)A list of keys from the matching record to include in the notification payload.voidsetShouldBadge(boolean value)Indicates that the notification should increment the app's badge count.voidsetShouldSendContentAvailable(boolean value)Indicates that the notification should be sent with the "content-available" flag to allow for background downloads in the application.voidsetShouldSendMutableContent(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.voidsetSoundName(java.lang.String value)The name of a sound file in your app bundle to play upon receiving the notification.voidsetSubtitle(java.lang.String value)Optional subtitle of the alert to display in a push notification.voidsetSubtitleLocalizationArgs(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.voidsetSubtitleLocalizationKey(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.voidsetTitle(java.lang.String value)Optional title of the alert to display in a push notification.voidsetTitleLocalizationArgs(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.voidsetTitleLocalizationKey(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.static voidsetVersion_static(long aVersion)booleanshouldBadge()Indicates that the notification should increment the app's badge count.booleanshouldSendContentAvailable()Indicates that the notification should be sent with the "content-available" flag to allow for background downloads in the application.booleanshouldSendMutableContent()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.java.lang.StringsoundName()The name of a sound file in your app bundle to play upon receiving the notification.java.lang.Stringsubtitle()Optional subtitle of the alert to display in a push notification.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.java.lang.StringsubtitleLocalizationKey()Instead of a raw subtitle string, you may optionally specify a key for a localized string in your app's Localizable.strings file.static org.moe.natj.objc.Classsuperclass_static()static booleansupportsSecureCoding()java.lang.Stringtitle()Optional title of the alert to display in a push notification.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.java.lang.StringtitleLocalizationKey()Instead of a raw title string, you may optionally specify a key for a localized string in your app's Localizable.strings file.static longversion_static()-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static CKNotificationInfo alloc()
-
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()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
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:
copyWithZonein interfaceNSCopying
-
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
-
encodeWithCoder
public void encodeWithCoder(NSCoder coder)
- Specified by:
encodeWithCoderin interfaceNSCoding
-
init
public CKNotificationInfo init()
-
initWithCoder
public CKNotificationInfo initWithCoder(NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding
-
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:NSSecureCodingThis 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:
_supportsSecureCodingin interfaceNSSecureCoding
-
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.
-
-