UIApplication.EnabledRemoteNotificationTypes 属性

定义

返回一个位掩码 UIRemoteNotificationType 值,指示应用接受哪些类型的通知。

[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, "Use 'CurrentUserNotificationSettings' or 'UNUserNotificationCenter.GetNotificationSettings' instead.")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual UIKit.UIRemoteNotificationType EnabledRemoteNotificationTypes { [Foundation.Export("enabledRemoteNotificationTypes")] [ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, "Use 'CurrentUserNotificationSettings' or 'UNUserNotificationCenter.GetNotificationSettings' instead.")] [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)] get; }
member this.EnabledRemoteNotificationTypes : UIKit.UIRemoteNotificationType

属性值

一个位掩码 UIRemoteNotificationType ,指示应用接受哪些类型的通知。

属性

适用于

另请参阅

  • <xref:UIKit.UIApplication.RegisterForRemoteNotificationTypes>