UNAuthorizationOptions 列舉
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
列舉使用者互動授權要求。
此列舉支援其成員值的位元組合。
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 3, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 14, ObjCRuntime.PlatformArchitecture.Arch64, null)]
[System.Flags]
public enum UNAuthorizationOptions
type UNAuthorizationOptions =
- 繼承
-
UNAuthorizationOptions
- 屬性
欄位
Alert | 4 | 指出顯示警示的授權。 |
Badge | 1 | 指出更新應用程式徽章的授權。 |
CarPlay | 8 | 指出在 CarPlay 中顯示通知的授權。 |
CriticalAlert | 16 | 指出顯示重大警示的授權。 |
None | 0 | 表示未指定任何要求類型。 |
ProvidesAppNotificationSettings | 32 | 指出應用程式應該提供通知設定的按鈕。 |
Provisional | 64 | 指出進行非關鍵通知的授權。 |
Sound | 2 | 表示播放音效的授權。 |