One Logo Pool Ball
UserNotifications · IOS API REFERENCE

UNNotificationContent

class · iOS 10.0+ · SDK 27.1

class UNNotificationContent

Members (18)

method · iOS 15.0+

updating

TypeScript
updating(provider: Implements<UNNotificationContentProviding> | SDKHandle): UNNotificationContent
Swift declaration
func updating(from provider: any UNNotificationContentProviding) throws -> UNNotificationContent
init

init

TypeScript
static init(): UNNotificationContent
Swift declaration
init()
get · iOS 10.0+

attachments

TypeScript
get attachments(): Array<UNNotificationAttachment>
Swift declaration
var attachments: [UNNotificationAttachment] { get }
get · iOS 10.0+

badge

TypeScript
get badge(): (_Foundation_NSNumber) | null
Swift declaration
@NSCopying var badge: NSNumber? { get }
get · iOS 10.0+

body

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

categoryIdentifier

TypeScript
get categoryIdentifier(): string
Swift declaration
var categoryIdentifier: String { get }
get · iOS 16.0+

filterCriteria

TypeScript
get filterCriteria(): (string) | null
Swift declaration
var filterCriteria: String? { get }
get · iOS 15.0+

interruptionLevel

TypeScript
get interruptionLevel(): UNNotificationInterruptionLevel
Swift declaration
var interruptionLevel: UNNotificationInterruptionLevel { get }
get · iOS 10.0+

launchImageName

TypeScript
get launchImageName(): string
Swift declaration
var launchImageName: String { get }
get · iOS 15.0+

relevanceScore

TypeScript
get relevanceScore(): number
Swift declaration
var relevanceScore: Double { get }
get · iOS 10.0+

sound

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

subtitle

TypeScript
get subtitle(): string
Swift declaration
var subtitle: String { get }
get · iOS 12.0+ · Deprecated in iOS 15.0

summaryArgument

TypeScript
get summaryArgument(): string
Swift declaration
var summaryArgument: String { get }
get · iOS 12.0+ · Deprecated in iOS 15.0

summaryArgumentCount

TypeScript
get summaryArgumentCount(): number
Swift declaration
var summaryArgumentCount: Int { get }
get · iOS 13.0+

targetContentIdentifier

TypeScript
get targetContentIdentifier(): (string) | null
Swift declaration
var targetContentIdentifier: String? { get }
get · iOS 10.0+

threadIdentifier

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

title

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

userInfo

TypeScript
get userInfo(): NativeMap<unknown, unknown>
Swift declaration
var userInfo: [AnyHashable : Any] { get }

Skipped declarations

No declarations were skipped in this snapshot.

All UserNotifications types →