AVAudioSession.OverrideOutputAudioPort Method

Definition

Requests to temporarily change the output audio port.

[Foundation.Export("overrideOutputAudioPort:error:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool OverrideOutputAudioPort (AVFoundation.AVAudioSessionPortOverride portOverride, out Foundation.NSError outError);
abstract member OverrideOutputAudioPort : AVFoundation.AVAudioSessionPortOverride *  -> bool
override this.OverrideOutputAudioPort : AVFoundation.AVAudioSessionPortOverride *  -> bool

Parameters

outError
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