共用方式為


UNAuthorizationOptions 列舉

定義

列舉使用者互動授權要求。

此列舉支援其成員值的位元組合。

[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

表示播放音效的授權。

適用於