AudioSessionManagerDelegate
@objc(YMAAudioSessionManagerDelegate)
public protocol AudioSessionManagerDelegate : NSObjectProtocol
The protocol defines the methods of a delegate that monitors the audio session.
-
Notifies that the audio will start playing.
Declaration
Swift
func audioSessionManagerWillPlayAudio(_ audioSessionManager: AudioSessionManager)
Parameters
audioSessionManager
A reference to the object of the AudioSessionManager class that invoked the method.
-
Notifies that the audio did stop playing.
Declaration
Swift
func audioSessionManagerDidStopPlayingAudio(_ audioSessionManager: AudioSessionManager)
Parameters
audioSessionManager
A reference to the object of the AudioSessionManager class that invoked the method.