iOS-Check-Permission 0.1.2

iOS-Check-Permission 0.1.2

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.

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;

CocoaPod

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

iOS-Check-Permission is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "iOS-Check-Permission"

Author

Douglas Frari - http://www.twitter.com/douglasddf (twitter)

License

iOS-Check-Permission is available under the MIT license. See the LICENSE file for more info.