TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Aug 2015 |
Maintained by Douglas Frari.
With this library you can request permission from camera features, reminders, gallery and location (GPS support). When requesting the resource use the library responds by using iOS blocks with authorized or denied access.
Requests permission to access the iOS (Calendar, Reminder, Gallery and Location), with option of receive the notification of the status not determined until receive the user's permission.
There are 7 methods to use in the library:
- (void)checkPermissionAccessForCalendar:(void(^)(void))successBlock
failureBlock:(void(^)(void))failureBlock;
- (void)checkPermissionAccessForCalendar:(void(^)(void))successBlock
failureBlock:(void(^)(void))failureBlock
authorizationStatusNotDetermined:(void(^)(void))statusNotDeterminedBlock;
- (void)checkPermissionAccessForReminder:(void(^)(void))successBlock
failureBlock:(void(^)(void))failureBlock;
- (void)checkPermissionAccessForReminder:(void(^)(void))successBlock
failureBlock:(void(^)(void))failureBlock
authorizationStatusNotDetermined:(void(^)(void))statusNotDeterminedBlock;
- (void)checkPermissionAccessForGallery:(void (^) (void))successBlock
failureBlock:(void (^) (void))failureBlock;
- (void)checkPermissionAccessForGallery:(void (^) (void))successBlock
failureBlock:(void (^) (void))failureBlock
authorizationStatusNotDetermined:(void(^)(void))statusNotDeterminedBlock;
- (void)checkPermissionAccessForLocation:(enum AuthorizeRequestType) type
successBlock:(void (^) (void))successBlock
failureBlock:(void (^) (void))failureBlock;
To run the example project, clone the repo, and run pod install
from the Example directory first.
iOS-Check-Permission is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "iOS-Check-Permission"
Douglas Frari - http://www.twitter.com/douglasddf (twitter)
iOS-Check-Permission is available under the MIT license. See the LICENSE file for more info.