共用方式為


AVAudioSession.Delegate 屬性

定義

AVFoundation.IAVAudioSessionDelegate 模型類別的實例,做為類別委派。

[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

屬性值

AVFoundation.IAVAudioSessionDelegate 模型類別的實例

屬性

備註

指派給這個物件的委派實例將用來處理事件,或視需要提供資料給這個類別。

設定 Delegate 或 WeakDelegate 值事件時,將會傳遞至指定的實例,而不是傳遞至 C#樣式事件

這是物件的強型別版本,如果開發人員想要只指派衍生自 NSObject 且已使用 [Export] 屬性裝飾的類別,則應該改用 WeakDelegate 屬性。

適用於