TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Jan 2015 |
Maintained by Elethom Hunter.
All-in-one privacy manager for iOS.
Currently supported:
PRPrivacyStatus privacyStatus = [PRPrivacyManager privacyStatusForType:PRPrivacyTypeContacts];
[PRPrivacyManager authorizeWithType:PRPrivacyTypeContacts
completion:^(TTPrivacyStatus status) {
// Handle result
}];
[PRPrivacyManager authorizeWithType:PRPrivacyTypeLocation
subtype:PRPrivacySubtypeWhenInUse
completion:^(TTPrivacyStatus status) {
// Handle result
}];
typedef NS_ENUM(NSUInteger, PRPrivacyType) {
PRPrivacyTypeLocation,
PRPrivacyTypeContacts,
PRPrivacyTypePhotos,
PRPrivacyTypeMicrophone,
PRPrivacyTypeCamera,
};
typedef NS_ENUM(NSUInteger, PRPrivacyStatus) {
PRPrivacyStatusNotDetermined,
PRPrivacyStatusRestricted,
PRPrivacyStatusDenied,
PRPrivacyStatusAuthorized,
#ifdef __IPHONE_8_0
PRPrivacyStatusAuthorizedAlways,
PRPrivacyStatusAuthorizedWhenInUse,
#endif
};
This code is distributed under the terms and conditions of the MIT license.
You can support me by:
:-)