##iOS-Check-Permission
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.
[![CI Status](http://img.shields.io/travis/Douglas Frari/iOS-Check-Permission.svg?style=flat)](https://travis-ci.org/Douglas Frari/iOS-Check-Permission)
iOS 8 or higher (currently in Objective-C)
#See more on Youtube video:
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.
##Example of use:
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"
pod try 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.