Share via


AVAudioSessionPortDescription.SetPreferredDataSource Metodo

Definizione

Imposta l'origine dati attualmente selezionata per la porta.

[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

Parametri

dataSource
AVAudioSessionDataSourceDescription

Da aggiungere.

Questo parametro può essere null.

outError
NSError

Restituisce

Attributi

Si applica a