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 属性。

适用于