Editar

Compartir a través de


AVAudioSession.SetPreferredInput Method

Definition

Sets the preferred input data source.

[Foundation.Export("setPreferredInput:error:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool SetPreferredInput (AVFoundation.AVAudioSessionPortDescription inPort, out Foundation.NSError outError);
abstract member SetPreferredInput : AVFoundation.AVAudioSessionPortDescription *  -> bool
override this.SetPreferredInput : AVFoundation.AVAudioSessionPortDescription *  -> bool

Parameters

inPort
AVAudioSessionPortDescription

To be added.

This parameter can be null.

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