Share via


AVAudioSession.Delegate Proprietà

Definizione

Istanza della classe modello AVFoundation.IAVAudioSessionDelegate che funge da delegato di classe.

[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, "Use 'AVAudioSession.Notification.Observe*' methods instead.")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public AVFoundation.IAVAudioSessionDelegate Delegate { [ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, "Use 'AVAudioSession.Notification.Observe*' methods instead.")] [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)] [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)] get; [ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, "Use 'AVAudioSession.Notification.Observe*' methods instead.")] [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)] [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)] set; }
member this.Delegate : AVFoundation.IAVAudioSessionDelegate with get, set

Valore della proprietà

Istanza della classe modello AVFoundation.IAVAudioSessionDelegate

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#

Si tratta della versione fortemente tipizzata dell'oggetto, gli sviluppatori devono usare la proprietà WeakDelegate, invece, se vogliono assegnare semplicemente una classe derivata da NSObject decorata con attributi [Export].

Si applica a