Share via


AVAudioSession.WeakDelegate Proprietà

Definizione

Oggetto che può rispondere al protocollo delegato per questo tipo

[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, "Use 'AVAudioSession.Notification.Observe*' methods instead.")]
public virtual Foundation.NSObject WeakDelegate { [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)] [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)] [Foundation.Export("delegate", ObjCRuntime.ArgumentSemantic.UnsafeUnretained)] [ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, "Use 'AVAudioSession.Notification.Observe*' methods instead.")] get; [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)] [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)] [Foundation.Export("setDelegate:", ObjCRuntime.ArgumentSemantic.UnsafeUnretained)] [ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, "Use 'AVAudioSession.Notification.Observe*' methods instead.")] set; }
member this.WeakDelegate : Foundation.NSObject with get, set

Valore della proprietà

Istanza che risponderà agli eventi e alle richieste di dati.

Attributi

Commenti

L'istanza delegato assegnata a questo oggetto verrà usata per gestire gli eventi o fornire dati su richiesta a questa classe.

Quando si impostano gli eventi di valori Delegate o WeakDelegate verranno recapitati all'istanza specificata anziché recapitarli agli eventi in stile C#

I metodi devono essere decorati con l'attributo [Export ("selectorName")] per rispondere a ogni metodo dal protocollo. In alternativa, usare il metodo Delegate fortemente tipizzato e non richiede gli attributi [Export] sui metodi.

Si applica a