AVAudioSessionPortDescription.SetPreferredDataSource Method

Definition

Sets the currently selected data source for the port.

[Foundation.Export("setPreferredDataSource:error:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual bool SetPreferredDataSource(AVFoundation.AVAudioSessionDataSourceDescription? dataSource, out Foundation.NSError outError);
[<Foundation.Export("setPreferredDataSource:error:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member SetPreferredDataSource : AVFoundation.AVAudioSessionDataSourceDescription * NSError -> bool
override this.SetPreferredDataSource : AVFoundation.AVAudioSessionDataSourceDescription * NSError -> bool

Parameters

dataSource
AVAudioSessionDataSourceDescription

To be added.

This parameter can be null.

outError
NSError

Returns

Attributes

Applies to