AVFoundation.AVAudioSession.SetMode Method
Requests a specific mode.

Syntax

[Foundation.Export("setMode:error:")]
[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_5_0)]
public virtual bool SetMode (Foundation.NSString mode, out Foundation.NSError error)

Parameters

mode
The value should be one of AVFoundation.AVAudioSession.ModeDefault, AVFoundation.AVAudioSession.ModeVoiceChat, AVFoundation.AVAudioSession.ModeGameCha, AVFoundation.AVAudioSession.ModeVideoRecording, AVFoundation.AVAudioSession.ModeMeasurement, AVFoundation.AVAudioSession.ModeMoviePlayback or AVFoundation.AVAudioSession.ModeVideoChat.
error
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.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: AVFoundation
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0