alertActionLocalizationKey
TypeScriptget alertActionLocalizationKey(): (string) | nullSwift declarationvar alertActionLocalizationKey: String? { get set }class · iOS 8.0+ · SDK 27.1
class NotificationInfoget alertActionLocalizationKey(): (string) | nullSwift declarationvar alertActionLocalizationKey: String? { get set }set alertActionLocalizationKey(value: (string) | null)Swift declarationvar alertActionLocalizationKey: String? { get set }get alertBody(): (string) | nullSwift declarationvar alertBody: String? { get set }set alertBody(value: (string) | null)Swift declarationvar alertBody: String? { get set }get alertLaunchImage(): (string) | nullSwift declarationvar alertLaunchImage: String? { get set }set alertLaunchImage(value: (string) | null)Swift declarationvar alertLaunchImage: String? { get set }get alertLocalizationKey(): (string) | nullSwift declarationvar alertLocalizationKey: String? { get set }set alertLocalizationKey(value: (string) | null)Swift declarationvar alertLocalizationKey: String? { get set }get category(): (string) | nullSwift declarationvar category: String? { get set }set category(value: (string) | null)Swift declarationvar category: String? { get set }get collapseIDKey(): (string) | nullSwift declarationvar collapseIDKey: String? { get set }set collapseIDKey(value: (string) | null)Swift declarationvar collapseIDKey: String? { get set }get shouldBadge(): booleanSwift declarationvar shouldBadge: Bool { get set }set shouldBadge(value: boolean)Swift declarationvar shouldBadge: Bool { get set }get shouldSendContentAvailable(): booleanSwift declarationvar shouldSendContentAvailable: Bool { get set }set shouldSendContentAvailable(value: boolean)Swift declarationvar shouldSendContentAvailable: Bool { get set }get shouldSendMutableContent(): booleanSwift declarationvar shouldSendMutableContent: Bool { get set }set shouldSendMutableContent(value: boolean)Swift declarationvar shouldSendMutableContent: Bool { get set }get soundName(): (string) | nullSwift declarationvar soundName: String? { get set }set soundName(value: (string) | null)Swift declarationvar soundName: String? { get set }get subtitle(): (string) | nullSwift declarationvar subtitle: String? { get set }set subtitle(value: (string) | null)Swift declarationvar subtitle: String? { get set }get subtitleLocalizationKey(): (string) | nullSwift declarationvar subtitleLocalizationKey: String? { get set }set subtitleLocalizationKey(value: (string) | null)Swift declarationvar subtitleLocalizationKey: String? { get set }get title(): (string) | nullSwift declarationvar title: String? { get set }set title(value: (string) | null)Swift declarationvar title: String? { get set }get titleLocalizationKey(): (string) | nullSwift declarationvar titleLocalizationKey: String? { get set }set titleLocalizationKey(value: (string) | null)Swift declarationvar titleLocalizationKey: String? { get set }get desiredKeys(): (Array<string>) | nullSwift declarationvar desiredKeys: [CKRecord.FieldKey]? { get set }The names of fields to include in the push notification's payload. This property contains an array of strings, each of which corresponds to the name of a field in the record that triggers the notification. When the system receives a notification, it includes the keys and their corresponding values. You can request a maximum of three keys. For the keys you specify, the allowable types are <doc://com.apple.documentation/documentation/foundation/nsstring>, <doc://com.apple.documentation/documentation/foundation/nsnumber>, <doc://com.apple.documentation/documentation/corelocation/cllocation>, <doc://com.apple.documentation/documentation/foundation/nsdate>, and ``CKRecord/Reference``. You can't specify keys with values that contain other data types. CloudKit may truncate strings that are more than 100 characters when it adds them to the notification's payload.
set desiredKeys(value: (Array<string>) | null)Swift declarationvar desiredKeys: [CKRecord.FieldKey]? { get set }The names of fields to include in the push notification's payload. This property contains an array of strings, each of which corresponds to the name of a field in the record that triggers the notification. When the system receives a notification, it includes the keys and their corresponding values. You can request a maximum of three keys. For the keys you specify, the allowable types are <doc://com.apple.documentation/documentation/foundation/nsstring>, <doc://com.apple.documentation/documentation/foundation/nsnumber>, <doc://com.apple.documentation/documentation/corelocation/cllocation>, <doc://com.apple.documentation/documentation/foundation/nsdate>, and ``CKRecord/Reference``. You can't specify keys with values that contain other data types. CloudKit may truncate strings that are more than 100 characters when it adds them to the notification's payload.
get alertLocalizationArgs(): (Array<string>) | nullSwift declarationvar alertLocalizationArgs: [CKRecord.FieldKey]? { get set }The fields for building a notification's alert. This property is an array of fields that CloudKit uses to extract the corresponding values from the record that triggers the push notification. The values must be strings, numbers, or dates. Don't specify keys that use other value types. CloudKit may truncate strings with a length greater than 100 characters when it adds them to a notification's payload. If you use `%@` for your substitution variables, CloudKit replaces those variables by traversing the array in order. If you use variables of the form `%n$@`, where `n` is an integer, `n` represents the index (starting at 1) of the item in the array to use. So, the first item in the array replaces the variable `%1$@`, the second item replaces the variable `%2$@`, and so on. You can use indexed substitution variables to change the order of items in the resulting string, which might be necessary when you localize your app's content.
set alertLocalizationArgs(value: (Array<string>) | null)Swift declarationvar alertLocalizationArgs: [CKRecord.FieldKey]? { get set }The fields for building a notification's alert. This property is an array of fields that CloudKit uses to extract the corresponding values from the record that triggers the push notification. The values must be strings, numbers, or dates. Don't specify keys that use other value types. CloudKit may truncate strings with a length greater than 100 characters when it adds them to a notification's payload. If you use `%@` for your substitution variables, CloudKit replaces those variables by traversing the array in order. If you use variables of the form `%n$@`, where `n` is an integer, `n` represents the index (starting at 1) of the item in the array to use. So, the first item in the array replaces the variable `%1$@`, the second item replaces the variable `%2$@`, and so on. You can use indexed substitution variables to change the order of items in the resulting string, which might be necessary when you localize your app's content.
get titleLocalizationArgs(): (Array<string>) | nullSwift declarationvar titleLocalizationArgs: [CKRecord.FieldKey]? { get set }The fields for building a notification's title. This property is an array of field names that CloudKit uses to extract the corresponding values from the record that triggers the push notification. The values must be strings, numbers, or dates. Don't specify keys that use other value types. CloudKit may truncate strings with a length greater than 100 characters when it adds them to a notification's payload. If you use `%@` for your substitution variables, CloudKit replaces those variables by traversing the array in order. If you use variables of the form `%n$@`, where `n` is an integer, `n` represents the index (starting at 1) of the item in the array to use. So, the first item in the array replaces the variable `%1$@`, the second item replaces the variable `%2$@`, and so on. You can use indexed substitution variables to change the order of items in the resulting string, which might be necessary when you localize your app's content.
set titleLocalizationArgs(value: (Array<string>) | null)Swift declarationvar titleLocalizationArgs: [CKRecord.FieldKey]? { get set }The fields for building a notification's title. This property is an array of field names that CloudKit uses to extract the corresponding values from the record that triggers the push notification. The values must be strings, numbers, or dates. Don't specify keys that use other value types. CloudKit may truncate strings with a length greater than 100 characters when it adds them to a notification's payload. If you use `%@` for your substitution variables, CloudKit replaces those variables by traversing the array in order. If you use variables of the form `%n$@`, where `n` is an integer, `n` represents the index (starting at 1) of the item in the array to use. So, the first item in the array replaces the variable `%1$@`, the second item replaces the variable `%2$@`, and so on. You can use indexed substitution variables to change the order of items in the resulting string, which might be necessary when you localize your app's content.
get subtitleLocalizationArgs(): (Array<string>) | nullSwift declarationvar subtitleLocalizationArgs: [CKRecord.FieldKey]? { get set }The fields for building a notification's subtitle. This property is an array of field names that CloudKit uses to extract the corresponding values from the record that triggers the push notification. The values must be strings, numbers, or dates. Don't specify keys that use other value types. CloudKit may truncate strings with a length greater than 100 characters when it adds them to a notification's payload. If you use `%@` for your substitution variables, CloudKit replaces those variables by traversing the array in order. If you use variables of the form `%n$@`, where `n` is an integer, `n` represents the index (starting at 1) of the item in the array to use. So, the first item in the array replaces the variable `%1$@`, the second item replaces the variable `%2$@`, and so on. You can use indexed substitution variables to change the order of items in the resulting string, which might be necessary when you localize your app's content.
set subtitleLocalizationArgs(value: (Array<string>) | null)Swift declarationvar subtitleLocalizationArgs: [CKRecord.FieldKey]? { get set }The fields for building a notification's subtitle. This property is an array of field names that CloudKit uses to extract the corresponding values from the record that triggers the push notification. The values must be strings, numbers, or dates. Don't specify keys that use other value types. CloudKit may truncate strings with a length greater than 100 characters when it adds them to a notification's payload. If you use `%@` for your substitution variables, CloudKit replaces those variables by traversing the array in order. If you use variables of the form `%n$@`, where `n` is an integer, `n` represents the index (starting at 1) of the item in the array to use. So, the first item in the array replaces the variable `%1$@`, the second item replaces the variable `%2$@`, and so on. You can use indexed substitution variables to change the order of items in the resulting string, which might be necessary when you localize your app's content.
static init(alertBody?: (string) | null, alertLocalizationKey?: (string) | null, alertLocalizationArgs?: Array<string>, title?: (string) | null, titleLocalizationKey?: (string) | null, titleLocalizationArgs?: Array<string>, subtitle?: (string) | null, subtitleLocalizationKey?: (string) | null, subtitleLocalizationArgs?: Array<string>, alertActionLocalizationKey?: (string) | null, alertLaunchImage?: (string) | null, soundName?: (string) | null, desiredKeys?: Array<string>, shouldBadge?: boolean, shouldSendContentAvailable?: boolean, shouldSendMutableContent?: boolean, category?: (string) | null, collapseIDKey?: (string) | null): CKSubscription_NotificationInfoSwift declarationconvenience init(alertBody: String? = nil, alertLocalizationKey: String? = nil, alertLocalizationArgs: [CKRecord.FieldKey] = [], title: String? = nil, titleLocalizationKey: String? = nil, titleLocalizationArgs: [CKRecord.FieldKey] = [], subtitle: String? = nil, subtitleLocalizationKey: String? = nil, subtitleLocalizationArgs: [CKRecord.FieldKey] = [], alertActionLocalizationKey: String? = nil, alertLaunchImage: String? = nil, soundName: String? = nil, desiredKeys: [CKRecord.FieldKey] = [], shouldBadge: Bool = false, shouldSendContentAvailable: Bool = false, shouldSendMutableContent: Bool = false, category: String? = nil, collapseIDKey: String? = nil)Creates a notification with the specified values. - Parameters: - alertBody: The text for the notification's alert. - alertLocalizationKey: The key that identifies the localized string for the notification's alert. - alertLocalizationArgs: The fields for building a notification's alert. - title: The notification's title. - titleLocalizationKey: The key that identifies the localized string for the notification's title. - titleLocalizationArgs: The fields for building a notification's title. - subtitle: The notification's subtitle. - subtitleLocalizationKey: The key that identifies the localized string for the notification's subtitle. - subtitleLocalizationArgs: The fields for building a notification's subtitle. - alertActionLocalizationKey: The key that identifies the localized string for the notification's action. - alertLaunchImage: The filename of an image to use as a launch image. - soundName: The filename of the sound file to play when a notification arrives. - desiredKeys: The names of fields to include in the push notification's payload. - shouldBadge: A Boolean value that determines whether an app's icon badge increments its value. - shouldSendContentAvailable: A Boolean value that indicates whether the push notification includes the content available flag. - shouldSendMutableContent: A Boolean value that indicates whether the push notification includes the content available flag. - category: The name of the action group that corresponds to this notification. - collapseIDKey: The value that the system uses to coalesce unseen push notifications. See the corresponding properties for more details about each parameter.
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
CKSubscription.NotificationInfo.init()
inherited init: cannot prove legal (class declares 1 custom initializer)