One Logo Pool Ball
ActivityKit · IOS API REFERENCE

AlertConfiguration.AlertSound

struct · iOS 16.1+ · SDK 27.1

struct AlertSound

An object that describes the sound to play for a Live Activity update alert.

Members (2)

static · iOS 16.1+

named

TypeScript
static named(name: string): AlertConfiguration_AlertSound
Swift declaration
static func named(_ name: String) -> AlertConfiguration.AlertSound

A function you use to configure a custom sound for a Live Activity update alert. - Parameters: - name: The name of the sound file to use for the alert. Choose a file that's in your app's main bundle or the `Library/Sounds` folder of your app's data container.

get · iOS 16.1+

default

TypeScript
static get default(): AlertConfiguration_AlertSound
Swift declaration
static var `default`: AlertConfiguration.AlertSound { get }

A value that represents the system's default alert sound.

Skipped declarations

No declarations were skipped in this snapshot.

All ActivityKit types →