One Logo Pool Ball
UserNotifications · IOS API REFERENCE

UNNotificationAction

class · iOS 10.0+ · SDK 27.1

class UNNotificationAction

Members (6)

init · iOS 10.0+

init

TypeScript
static initIdentifierTitleOptions(identifier: string, title: string, options?: UNNotificationActionOptions): UNNotificationAction
Swift declaration
convenience init(identifier: String, title: String, options: UNNotificationActionOptions = [])
init · iOS 15.0+

init

TypeScript
static initIdentifierTitleOptionsIcon(identifier: string, title: string, options?: UNNotificationActionOptions, icon?: (UNNotificationActionIcon) | null): UNNotificationAction
Swift declaration
convenience init(identifier: String, title: String, options: UNNotificationActionOptions = [], icon: UNNotificationActionIcon?)
get · iOS 15.0+

icon

TypeScript
get icon(): (UNNotificationActionIcon) | null
Swift declaration
@NSCopying var icon: UNNotificationActionIcon? { get }
get · iOS 10.0+

identifier

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

options

TypeScript
get options(): UNNotificationActionOptions
Swift declaration
var options: UNNotificationActionOptions { get }
get · iOS 10.0+

title

TypeScript
get title(): string
Swift declaration
var title: String { get }

Skipped declarations

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

UNNotificationAction.init()

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

All UserNotifications types →