One Logo Pool Ball
AVFAudio · IOS API REFERENCE

AVAudioSession.DidBecomeInactiveMessage

struct · iOS 27.0+ · SDK 27.1

struct DidBecomeInactiveMessage

Members (4)

static · iOS 27.0+

makeMessage

TypeScript
static makeMessage(notification: _Foundation_Notification): Promise<(AVAudioSession_DidBecomeInactiveMessage) | null>
Swift declaration
@MainActor static func makeMessage(_ notification: Notification) -> AVAudioSession.DidBecomeInactiveMessage?

Converts a posted notification into this main actor message type for any observers. To implement this method in your own `MainActorMessage` conformance, retrieve values from the ``Notification``'s ``Notification/userInfo`` and set them as properties on the message. - Parameter notification: The posted ``Notification``. - Returns: The converted `MainActorMessage` or `nil` if conversion is not possible.

static · iOS 27.0+

makeNotification

TypeScript
static makeNotification(message: AVAudioSession_DidBecomeInactiveMessage): Promise<_Foundation_Notification>
Swift declaration
@MainActor static func makeNotification(_ message: AVAudioSession.DidBecomeInactiveMessage) -> Notification

Converts a posted main actor message into a notification for any observers. To implement this method in your own `MainActorMessage` conformance, use the properties defined by the message to populate the ``Notification``'s ``Notification/userInfo``. - Parameters: - message: The posted `MainActorMessage`. - Returns: The converted ``Notification``.

get · iOS 27.0+

deactivationResult

TypeScript
get deactivationResult(): AVAudioSession_DeactivationResult
Swift declaration
let deactivationResult: AVAudioSession.DeactivationResult
get · iOS 27.0+

name

TypeScript
static get nameValue(): _Foundation_NSNotification_Name
Swift declaration
static var name: Notification.Name { get }

A optional name corresponding to this type, used to interoperate with notification posters and observers.

Skipped declarations

No declarations were skipped in this snapshot.

All AVFAudio types →