AVAudioSessionPortDescription.SetPreferredDataSource 方法

定义

设置当前为端口选择的数据源。

[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

参数

dataSource
AVAudioSessionDataSourceDescription

内容待定。

此参数可以为 null

outError
NSError

返回

属性

适用于