AVAudioSessionPortDescription.SetPreferredDataSource 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
设置当前为端口选择的数据源。
[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
参数
- outError
- NSError
返回
- 属性