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.

  1. Methods
  2. -audioSessionManagerWillPlayAudio:
  3. -audioSessionManagerDidStopPlayingAudio:

Methods

-audioSessionManagerWillPlayAudio:

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 YMAAudioSessionManager class that invoked the method.

audioSessionManager

A reference to the object of the YMAAudioSessionManager class that invoked the method.

-audioSessionManagerDidStopPlayingAudio:

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 YMAAudioSessionManager class that invoked the method.

audioSessionManager

A reference to the object of the YMAAudioSessionManager class that invoked the method.