AuthorizeType
@objc(FWAuthorizeType)
public enum AuthorizeType : Int
权限类型枚举
-
使用时定位,Info.plist需配置NSLocationWhenInUseUsageDescription
Declaration
Swift
case locationWhenInUse = 1
-
后台定位,Info.plist需配置NSLocationAlwaysUsageDescription和NSLocationAlwaysAndWhenInUseUsageDescription
Declaration
Swift
case locationAlways = 2
-
麦克风,需启用Microphone子模块,Info.plist需配置NSMicrophoneUsageDescription
Declaration
Swift
case microphone = 3
-
相册,Info.plist需配置NSPhotoLibraryUsageDescription
Declaration
Swift
case photoLibrary = 4
-
照相机,Info.plist需配置NSCameraUsageDescription
Declaration
Swift
case camera = 5
-
联系人,需启用Contacts子模块,Info.plist需配置NSContactsUsageDescription
Declaration
Swift
case contacts = 6
-
日历,需启用Calendar子模块,Info.plist需配置NSCalendarsUsageDescription
Declaration
Swift
case calendars = 7
-
提醒,需启用Calendar子模块,Info.plist需配置NSRemindersUsageDescription
Declaration
Swift
case reminders = 8
-
音乐,需启用AppleMusic子模块,Info.plist需配置NSAppleMusicUsageDescription
Declaration
Swift
case appleMusic = 9
-
通知,远程推送需打开Push Notifications开关和Background Modes的Remote notifications开关
Declaration
Swift
case notifications = 10
-
广告跟踪,需启用Tracking子模块,Info.plist需配置NSUserTrackingUsageDescription
Declaration
Swift
case tracking = 11