FWAuthorizeType
enum FWAuthorizeType : NSInteger {}
权限类型枚举
-
使用时定位,Info.plist需配置NSLocationWhenInUseUsageDescription
Declaration
Objective-C
FWAuthorizeTypeLocationWhenInUse = 1 -
后台定位,Info.plist需配置NSLocationAlwaysUsageDescription和NSLocationAlwaysAndWhenInUseUsageDescription
Declaration
Objective-C
FWAuthorizeTypeLocationAlways = 2 -
麦克风,需启用Microphone子模块,Info.plist需配置NSMicrophoneUsageDescription
Declaration
Objective-C
FWAuthorizeTypeMicrophone = 3 -
相册,Info.plist需配置NSPhotoLibraryUsageDescription
Declaration
Objective-C
FWAuthorizeTypePhotoLibrary = 4 -
照相机,Info.plist需配置NSCameraUsageDescription
Declaration
Objective-C
FWAuthorizeTypeCamera = 5 -
联系人,需启用Contacts子模块,Info.plist需配置NSContactsUsageDescription
Declaration
Objective-C
FWAuthorizeTypeContacts = 6 -
日历,需启用Calendar子模块,Info.plist需配置NSCalendarsUsageDescription
Declaration
Objective-C
FWAuthorizeTypeCalendars = 7 -
提醒,需启用Calendar子模块,Info.plist需配置NSRemindersUsageDescription
Declaration
Objective-C
FWAuthorizeTypeReminders = 8 -
音乐,需启用AppleMusic子模块,Info.plist需配置NSAppleMusicUsageDescription
Declaration
Objective-C
FWAuthorizeTypeAppleMusic = 9 -
通知,远程推送需打开Push Notifications开关和Background Modes的Remote notifications开关
Declaration
Objective-C
FWAuthorizeTypeNotifications = 10 -
广告跟踪,需启用Tracking子模块,Info.plist需配置NSUserTrackingUsageDescription
Declaration
Objective-C
FWAuthorizeTypeTracking = 11
FWAuthorizeType Enumeration Reference