AudioSessionPropertyListener
Invoked when an audio session property changes in iOS.
Declaration
typealias AudioSessionPropertyListener = (UnsafeMutableRawPointer?, AudioSessionPropertyID, UInt32, UnsafeRawPointer?) -> VoidParameters
- inClientData:
Data that you specified in the
inClientDataparameter of the Audiosessionaddpropertylistener(_:_:_:) function. Can beNULL. - inID:
The identifier for the audio session property whose value just changed. See 1618455 Audio Session Property Identifie.
- inDataSize:
The size, in bytes, of the value of the changed property.
- inData:
The new value of the changed property.
Discussion
If you named your function MyPropertyListener, you would declare it like this:
Discussion
You can register one or more property listener callbacks with your application’s audio session object by calling the AudioSessionAddPropertyListener(_:_:_:) function.