Suggestions

close search

StringeeAudioManager

@interface StringeeAudioManager : NSObject

This class manages the client's AudioSession, provides methods to change the AudioSession's mode, category, loud speaker/headset speaker...

+ instance

Gets a StringeeAudioManager instance.

+ (StringeeAudioManager *)instance;
- setLoudspeaker:

Switches between loud speaker and headset speaker:
- enable = YES to use loud speaker.
- enable = NO to use headset speaker.

- (BOOL)setLoudspeaker:(BOOL)enable;
- audioSessionSetCategory:error:

Sets the audio sessions's category. For more information, see Audio Session Categories

- (BOOL)audioSessionSetCategory:(NSString *)category error:(NSError **)outError;
- audioSessionSetMode:error:

Sets the audio sessions's category. For more information, see Audio Session Modes

- (BOOL)audioSessionSetMode:(NSString *)mode error:(NSError **)outError;
- audioSessionSetActive:error:

Activates or deactivates audio session.

- (BOOL)audioSessionSetActive:(BOOL)active error:(NSError **)outError;