YMAAudioSessionManagerDelegate
Objective-C
@protocol YMAAudioSessionManagerDelegate <NSObject>
Swift
protocol YMAAudioSessionManagerDelegate : NSObjectProtocol
The protocol defines the methods of the delegate that tracks audio sessions. Methods are called by an object of the YMAAudioSessionManager
class when its state changes.
Called when the audio starts playing.
Declaration
Objective-C
- (void)audioSessionManagerWillPlayAudio:
(nonnull YMAAudioSessionManager *)audioSessionManager;
Swift
func audioSessionManagerWillPlayAudio(_ audioSessionManager: YMAAudioSessionManager)
Parameters
audioSessionManager | A reference to the object of the |
audioSessionManager | A reference to the object of the |
Called when the audio is stopped.
Declaration
Objective-C
- (void)audioSessionManagerDidStopPlayingAudio:
(nonnull YMAAudioSessionManager *)audioSessionManager;
Swift
func audioSessionManagerDidStopPlayingAudio(_ audioSessionManager: YMAAudioSessionManager)
Parameters
audioSessionManager | A reference to the object of the |
audioSessionManager | A reference to the object of the |