Skip to content

Permits the user request for permission access the operating system's (Calendar , Reminder, Gallery and Location), with the objective-c block support.

License

Notifications You must be signed in to change notification settings

brunofcat/iOS-Check-Permission

 
 

Repository files navigation

##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.

CocoaPod

[![CI Status](http://img.shields.io/travis/Douglas Frari/iOS-Check-Permission.svg?style=flat)](https://travis-ci.org/Douglas Frari/iOS-Check-Permission) Version License Platform

Requirements

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;

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"

For download the Demo example, use:

pod try 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.

About

Permits the user request for permission access the operating system's (Calendar , Reminder, Gallery and Location), with the objective-c block support.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 67.1%
  • Shell 28.8%
  • Ruby 4.1%