AuthorizeType
public struct AuthorizeType : RawRepresentable, Equatable, Hashable, Sendable
可扩展权限类型
-
Declaration
Swift
public typealias RawValue = String
-
使用时定位,Info.plist需配置NSLocationWhenInUseUsageDescription
Declaration
Swift
public static let locationWhenInUse: AuthorizeType
-
后台定位,Info.plist需配置NSLocationAlwaysUsageDescription和NSLocationAlwaysAndWhenInUseUsageDescription
Declaration
Swift
public static let locationAlways: AuthorizeType
-
相册,Info.plist需配置NSPhotoLibraryUsageDescription|NSPhotoLibraryAddUsageDescription
Declaration
Swift
public static let photoLibrary: AuthorizeType
-
照相机,Info.plist需配置NSCameraUsageDescription
Declaration
Swift
public static let camera: AuthorizeType
-
通知,远程推送需打开Push Notifications开关和Background Modes的Remote notifications开关
Declaration
Swift
public static let notifications: AuthorizeType
-
Declaration
Swift
public var rawValue: String
-
Declaration
Swift
public init(rawValue: String)
-
Undocumented
Declaration
Swift
public init(_ rawValue: String)
-
生物识别,Info.plist需配置NSFaceIDUsageDescription
Declaration
Swift
public static let biometry: AuthorizeType
-
日历,Info.plist需配置NSCalendarsUsageDescription|NSCalendarsFullAccessUsageDescription
Declaration
Swift
public static let calendars: AuthorizeType
-
日历仅写入,Info.plist需配置NSCalendarsUsageDescription|NSCalendarsWriteOnlyAccessUsageDescription
Declaration
Swift
public static let calendarsWriteOnly: AuthorizeType
-
提醒,Info.plist需配置NSRemindersUsageDescription|NSRemindersFullAccessUsageDescription
Declaration
Swift
public static let reminders: AuthorizeType
-
联系人,Info.plist需配置NSContactsUsageDescription
Declaration
Swift
public static let contacts: AuthorizeType
-
麦克风,Info.plist需配置NSMicrophoneUsageDescription
Declaration
Swift
public static let microphone: AuthorizeType
-
广告跟踪,Info.plist需配置NSUserTrackingUsageDescription
Declaration
Swift
public static let tracking: AuthorizeType