Partilhar via


AVAudioSessionPortDescription.SetPreferredDataSource Método

Definição

Define a fonte de dados selecionada no momento para a 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

Parâmetros

dataSource
AVAudioSessionDataSourceDescription

A ser adicionado.

Esse parâmetro pode ser null.

outError
NSError

Retornos

Atributos

Aplica-se a