Bearbeiten

Freigeben über


AVAudioSessionPortDescription.SetPreferredDataSource Method

Definition

Sets the currently selected data source for the port.

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

Parameters

dataSource
AVAudioSessionDataSourceDescription

To be added.

This parameter can be null.

outError
NSError

Returns

Attributes

Applies to