UIApplication.EnabledRemoteNotificationTypes 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回一个位掩码 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>