One Logo Pool Ball
UserNotifications · IOS API REFERENCE

UNNotificationSound

class · iOS 10.0+ · SDK 27.1

class UNNotificationSound

Members (8)

static · iOS 12.0+

criticalSoundNamed

TypeScript
static criticalSoundNamed(name: UNNotificationSoundName): UNNotificationSound
Swift declaration
class func criticalSoundNamed(_ name: UNNotificationSoundName) -> Self
static · iOS 12.0+

criticalSoundNamed

TypeScript
static criticalSoundNamedWithAudioVolume(name: UNNotificationSoundName, volume: number): UNNotificationSound
Swift declaration
class func criticalSoundNamed(_ name: UNNotificationSoundName, withAudioVolume volume: Float) -> Self
static · iOS 12.0+

defaultCriticalSound

TypeScript
static defaultCriticalSound(volume: number): UNNotificationSound
Swift declaration
class func defaultCriticalSound(withAudioVolume volume: Float) -> Self
static · iOS 15.2+

ringtoneSoundNamed

TypeScript
static ringtoneSoundNamed(name: UNNotificationSoundName): UNNotificationSound
Swift declaration
class func ringtoneSoundNamed(_ name: UNNotificationSoundName) -> Self
init · iOS 10.0+

init

TypeScript
static init(name: UNNotificationSoundName): UNNotificationSound
Swift declaration
convenience init(named name: UNNotificationSoundName)
get · iOS 12.0+

defaultCritical

TypeScript
static get defaultCritical(): UNNotificationSound
Swift declaration
@NSCopying class var defaultCritical: UNNotificationSound { get }
get · iOS 15.2+

defaultRingtone

TypeScript
static get defaultRingtone(): UNNotificationSound
Swift declaration
@NSCopying class var defaultRingtone: UNNotificationSound { get }
get · iOS 10.0+

default

TypeScript
static get default(): UNNotificationSound
Swift declaration
@NSCopying class var `default`: UNNotificationSound { get }

Skipped declarations

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

UNNotificationSound.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All UserNotifications types →