public class CKNotificationInfo extends NSObject implements NSSecureCoding, NSCopying
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.
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
CKNotificationInfo(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
_supportsSecureCoding()
This property must return YES on all classes that allow secure coding.
|
static boolean |
accessInstanceVariablesDirectly() |
java.lang.String |
alertActionLocalizationKey()
A key for a localized string to be used as the alert action in a modal style notification.
|
java.lang.String |
alertBody()
Optional alert string to display in a push notification.
|
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.
|
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.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.
|
static CKNotificationInfo |
alloc() |
static CKNotificationInfo |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
java.lang.String |
category()
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.Class |
classForKeyedUnarchiver() |
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.
|
java.lang.Object |
copyWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
NSArray<java.lang.String> |
desiredKeys()
A list of keys from the matching record to include in the notification payload.
|
void |
encodeWithCoder(NSCoder coder) |
static long |
hash_static() |
CKNotificationInfo |
init() |
CKNotificationInfo |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
static CKNotificationInfo |
new_objc() |
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
void |
setAlertActionLocalizationKey(java.lang.String value)
A key for a localized string to be used as the alert action in a modal style notification.
|
void |
setAlertBody(java.lang.String value)
Optional alert string to display in a push notification.
|
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.
|
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.
|
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.
|
void |
setCategory(java.lang.String value)
Optional property for the category to be sent with the push when this subscription fires.
|
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.
|
void |
setDesiredKeys(NSArray<java.lang.String> value)
A list of keys from the matching record to include in the notification payload.
|
void |
setShouldBadge(boolean value)
Indicates that the notification should increment the app's badge count.
|
void |
setShouldSendContentAvailable(boolean value)
Indicates that the notification should be sent with the "content-available" flag to allow for background downloads in the application.
|
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.
|
void |
setSoundName(java.lang.String value)
The name of a sound file in your app bundle to play upon receiving the notification.
|
void |
setSubtitle(java.lang.String value)
Optional subtitle of the alert to display in a push notification.
|
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.
|
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.
|
void |
setTitle(java.lang.String value)
Optional title of the alert to display in a push notification.
|
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.
|
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.
|
static void |
setVersion_static(long aVersion) |
boolean |
shouldBadge()
Indicates that the notification should increment the app's badge count.
|
boolean |
shouldSendContentAvailable()
Indicates that the notification should be sent with the "content-available" flag to allow for background downloads in the application.
|
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.
|
java.lang.String |
soundName()
The name of a sound file in your app bundle to play upon receiving the notification.
|
java.lang.String |
subtitle()
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.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.
|
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsSecureCoding() |
java.lang.String |
title()
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.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.
|
static long |
version_static() |
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, willChangeValuesAtIndexesForKeyprotected CKNotificationInfo(org.moe.natj.general.Pointer peer)
public static boolean accessInstanceVariablesDirectly()
public static CKNotificationInfo alloc()
public static CKNotificationInfo allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static CKNotificationInfo new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static boolean supportsSecureCoding()
public static long version_static()
public java.lang.String alertActionLocalizationKey()
public java.lang.String alertBody()
public java.lang.String alertLaunchImage()
public NSArray<java.lang.String> alertLocalizationArgs()
public java.lang.String alertLocalizationKey()
public java.lang.String category()
Categories allow you to present custom actions to the user on your push notifications.
UIMutableUserNotificationCategorypublic java.lang.Object copyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
copyWithZone in interface NSCopyingpublic NSArray<java.lang.String> desiredKeys()
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
public void encodeWithCoder(NSCoder coder)
encodeWithCoder in interface NSCodingpublic CKNotificationInfo init()
public CKNotificationInfo initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodingpublic void setAlertActionLocalizationKey(java.lang.String value)
public void setAlertBody(java.lang.String value)
public void setAlertLaunchImage(java.lang.String value)
public void setAlertLocalizationArgs(NSArray<java.lang.String> value)
public void setAlertLocalizationKey(java.lang.String value)
public void setCategory(java.lang.String value)
Categories allow you to present custom actions to the user on your push notifications.
UIMutableUserNotificationCategorypublic void setDesiredKeys(NSArray<java.lang.String> value)
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
public void setShouldBadge(boolean value)
public void setShouldSendContentAvailable(boolean value)
Default value is @c NO.
public void setSoundName(java.lang.String value)
public boolean shouldBadge()
public boolean shouldSendContentAvailable()
Default value is @c NO.
public java.lang.String soundName()
public boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCodingpublic java.lang.String collapseIDKey()
Notification API documentationpublic void setCollapseIDKey(java.lang.String value)
Notification API documentationpublic void setShouldSendMutableContent(boolean value)
Default value is @c NO.
public void setSubtitle(java.lang.String value)
public void setSubtitleLocalizationArgs(NSArray<java.lang.String> value)
public void setSubtitleLocalizationKey(java.lang.String value)
public void setTitle(java.lang.String value)
public void setTitleLocalizationArgs(NSArray<java.lang.String> value)
public void setTitleLocalizationKey(java.lang.String value)
public boolean shouldSendMutableContent()
Default value is @c NO.
public java.lang.String subtitle()
public NSArray<java.lang.String> subtitleLocalizationArgs()
public java.lang.String subtitleLocalizationKey()
public java.lang.String title()
public NSArray<java.lang.String> titleLocalizationArgs()
public java.lang.String titleLocalizationKey()