AVAudioSession.SetMode(NSString, NSError) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Requests a specific mode.
[Foundation.Export("setMode:error:")]
public virtual bool SetMode (Foundation.NSString mode, out Foundation.NSError error);
abstract member SetMode : Foundation.NSString * -> bool
override this.SetMode : Foundation.NSString * -> bool
Parameters
- mode
- NSString
The value should be one of ModeDefault, ModeVoiceChat, ModeGameChat, ModeVideoRecording, ModeMeasurement, ModeMoviePlayback or ModeVideoChat.
- error
- NSError
On failure, this contains the error details.
Returns
true
if the request was successful, otherwise the outError parameter contains an instance of NSError describing the problem.
- Attributes