One Logo Pool Ball
UserNotifications · IOS API REFERENCE

UNNotificationCategory

class · iOS 10.0+ · SDK 27.1

class UNNotificationCategory

Members (9)

init · iOS 12.0+

init

TypeScript
static initIdentifierActionsIntentIdentifiersHiddenPreviewsBodyPlaceholderCategorySummaryFormatOptions(identifier: string, actions: Array<UNNotificationAction>, intentIdentifiers: Array<string>, hiddenPreviewsBodyPlaceholder?: (string) | null, categorySummaryFormat?: (string) | null, options?: UNNotificationCategoryOptions): UNNotificationCategory
Swift declaration
convenience init(identifier: String, actions: [UNNotificationAction], intentIdentifiers: [String], hiddenPreviewsBodyPlaceholder: String?, categorySummaryFormat: String?, options: UNNotificationCategoryOptions = [])
init · iOS 11.0+

init

TypeScript
static initIdentifierActionsIntentIdentifiersHiddenPreviewsBodyPlaceholderOptions(identifier: string, actions: Array<UNNotificationAction>, intentIdentifiers: Array<string>, hiddenPreviewsBodyPlaceholder: string, options?: UNNotificationCategoryOptions): UNNotificationCategory
Swift declaration
convenience init(identifier: String, actions: [UNNotificationAction], intentIdentifiers: [String], hiddenPreviewsBodyPlaceholder: String, options: UNNotificationCategoryOptions = [])
init · iOS 10.0+

init

TypeScript
static initIdentifierActionsIntentIdentifiersOptions(identifier: string, actions: Array<UNNotificationAction>, intentIdentifiers: Array<string>, options?: UNNotificationCategoryOptions): UNNotificationCategory
Swift declaration
convenience init(identifier: String, actions: [UNNotificationAction], intentIdentifiers: [String], options: UNNotificationCategoryOptions = [])
get · iOS 10.0+

actions

TypeScript
get actions(): Array<UNNotificationAction>
Swift declaration
var actions: [UNNotificationAction] { get }
get · iOS 12.0+

categorySummaryFormat

TypeScript
get categorySummaryFormat(): string
Swift declaration
var categorySummaryFormat: String { get }
get · iOS 11.0+

hiddenPreviewsBodyPlaceholder

TypeScript
get hiddenPreviewsBodyPlaceholder(): string
Swift declaration
var hiddenPreviewsBodyPlaceholder: String { get }
get · iOS 10.0+

identifier

TypeScript
get identifier(): string
Swift declaration
var identifier: String { get }
get · iOS 10.0+

intentIdentifiers

TypeScript
get intentIdentifiers(): Array<string>
Swift declaration
var intentIdentifiers: [String] { get }
get · iOS 10.0+

options

TypeScript
get options(): UNNotificationCategoryOptions
Swift declaration
var options: UNNotificationCategoryOptions { get }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

UNNotificationCategory.init()

inherited init: cannot prove legal (class declares 3 custom initializers)

All UserNotifications types →