项目介绍:
PrivacyPermission
隐私权限是一个用于访问各种隐私权限的库,PrivacyPermission,你可以用它来做更友好的用户交互体验,使用及其方便,带回调函数。
Privacy PermissionSupported
-
Photo
-
Privacy – Photo Library Usage Description
-
-
Camera
-
Privacy – Camera Usage Description
-
-
Media
-
Privacy – Media Library Usage Description
-
-
Microphone
-
Privacy – Microphone Usage Description
-
-
Location
-
Privacy – Location Usage Description
-
Privacy – Location Always Usage Description
-
Privacy – Location When In Use Usage Description
-
-
Bluetooth
-
Privacy – Bluetooth Peripheral Usage Description
-
-
PushNotification
-
Speech
-
Privacy – Speech Recognition Usage Description
-
-
Event
-
Privacy – Calendars Usage Description
-
-
Contact
-
Privacy – Contacts Usage Description
-
-
Reminder
-
Privacy – Reminders Usage Description
-
-
Health
-
Privacy – Health Share Usage Description
-
Privacy – Health Update Usage Description
-
License
PrivacyPermission
use MIT license
Installation with cocoapods
pod 'PrivacyPermission'
Usage
-
获取相册权限的一个示例
-
点击访问GitHub下载项目查看更多引用说明,如果帮助到了您是我最开心的事情,欢迎star、pull、issue、让我们一起进步!
EXAMPLE
[[PrivacyPermission sharedInstance]accessPrivacyPermissionWithType:PrivacyPermissionTypePhoto completion:^(BOOL response, PrivacyPermissionAuthorizationStatus status) {
NSLog(@"response:%d \n status:%ld",response,status);
}];