次の方法で共有


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

戻り値

属性

適用対象