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.

  • Notifies the delegate that the microphone was muted. This method is invoked on the queue specified via -[Sinch setCallbackQueue:], which defaults to the main queue.

    Declaration

    Objective-C

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

    Swift

    optional func audioControllerMuted(_ audioController: (any SINAudioController)!)

    Parameters

    audioController

    The audio controller associated with this delegate.

  • Notifies the delegate that the microphone was unmuted. This method is invoked on the queue specified via -[Sinch setCallbackQueue:], which defaults to the main queue.

    Declaration

    Objective-C

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

    Swift

    optional func audioControllerUnmuted(_ audioController: (any SINAudioController)!)

    Parameters

    audioController

    The audio controller associated with this delegate.

  • Notifies the delegate that the speaker was enabled. This method is invoked on the queue specified via -[Sinch setCallbackQueue:], which defaults to the main queue.

    Declaration

    Objective-C

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

    Swift

    optional func audioControllerSpeakerEnabled(_ audioController: (any SINAudioController)!)

    Parameters

    audioController

    The audio controller associated with this delegate.

  • Notifies the delegate that the speaker was disabled. This method is invoked on the queue specified via -[Sinch setCallbackQueue:], which defaults to the main queue.

    Declaration

    Objective-C

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

    Swift

    optional func audioControllerSpeakerDisabled(_ audioController: (any SINAudioController)!)

    Parameters

    audioController

    The audio controller associated with this delegate.