Share via


AVAudioSession.SetMode Method

Definition

Overloads

Name Description
SetMode(NSString, NSError)

Requests a specific mode.

SetMode(AVAudioSessionMode, NSError)

SetMode(NSString, NSError)

Requests a specific mode.

[Foundation.Export("setMode:error:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual bool SetMode(Foundation.NSString mode, out Foundation.NSError error);
[<Foundation.Export("setMode:error:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member SetMode : Foundation.NSString * NSError -> bool
override this.SetMode : Foundation.NSString * NSError -> bool

Parameters

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

Applies to

SetMode(AVAudioSessionMode, NSError)

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public bool SetMode(AVFoundation.AVAudioSessionMode mode, out Foundation.NSError error);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
member this.SetMode : AVFoundation.AVAudioSessionMode * NSError -> bool

Parameters

error
NSError

Returns

Attributes

Applies to