SINAudioControllerDelegate

Objective-C

@protocol SINAudioControllerDelegate <NSObject>

Swift

protocol SINAudioControllerDelegate : NSObjectProtocol

The delegate of a SINAudioController object must adopt the SINAudioControllerDelegate protocol. The methods handle audio related state changes.

Important

Thread safety notes: Should be called on main thread/main GCD queue.
  • Notifies the delegate that the microphone was muted.

    Important

    Thread safety notes: Should be called on main thread/main GCD queue.

    Declaration

    Objective-C

    - (void)audioControllerMuted:(id<SINAudioController>)audioController;

    Swift

    optional func audioControllerMuted(_ audioController: SINAudioController!)

    Parameters

    audioController

    The audio controller associated with this delegate.

  • Notifies the delegate that the microphone was unmuted.

    Important

    Thread safety notes: Should be called on main thread/main GCD queue.

    Declaration

    Objective-C

    - (void)audioControllerUnmuted:(id<SINAudioController>)audioController;

    Swift

    optional func audioControllerUnmuted(_ audioController: SINAudioController!)

    Parameters

    audioController

    The audio controller associated with this delegate.

  • Notifies the delegate that the speaker was enabled.

    Important

    Thread safety notes: Should be called on main thread/main GCD queue.

    Declaration

    Objective-C

    - (void)audioControllerSpeakerEnabled:(id<SINAudioController>)audioController;

    Swift

    optional func audioControllerSpeakerEnabled(_ audioController: SINAudioController!)

    Parameters

    audioController

    The audio controller associated with this delegate.

  • Notifies the delegate that the speaker was disabled.

    Important

    Thread safety notes: Should be called on main thread/main GCD queue.

    Declaration

    Objective-C

    - (void)audioControllerSpeakerDisabled:(id<SINAudioController>)audioController;

    Swift

    optional func audioControllerSpeakerDisabled(_ audioController: SINAudioController!)

    Parameters

    audioController

    The audio controller associated with this delegate.