Latest 0.0.1
Homepage https://github.com/lightank/LTPrivacyPermission
License MIT
Platforms ios 8.0, requires ARC
Authors

LTPrivacyPermission is a library for accessing various system privacy permissions

License 
Platform 
Support 
Cocoapods 
Language 

Privacy Permission Supported

  • Photo
    • Privacy – Photo Library Usage Description
  • Camera
    • Privacy – Camera Usage Description
  • Media Library
    • Privacy – Media Library Usage Description
  • Microphone
    • Privacy – Microphone Usage Description
  • Location
    • Privacy – Location Always and When In Use Usage Description
    • Privacy – Location Always Usage Description
    • Privacy – Location When In Use Usage Description
  • PushNotification
  • Speech
    • Privacy – Speech Recognition Usage Description
  • Calendar
    • Privacy – Calendars Usage Description
  • Contact
    • Privacy – Contacts Usage Description
  • Reminder
    • Privacy – Reminders Usage Description
  • Network (for China)

Preview

mainpage CN mainpage USA
Asset/permission_zh Asset/permission_en

Installation with cocoapods

 pod 'LTPrivacyPermission'

Usage

example:

[LTPrivacyPermission.sharedPermission accessPrivacyPermissionWithType:indexPath.row completion:^(BOOL authorized, LTPrivacyPermissionAuthorizationStatus status) {
    if (!authorized)
    {
        // show open application settings alert
        [LTPrivacyPermission showOpenApplicationSettingsAlertWithTitle:NSLocalizedString(@"Permission.ErrorTitle", nil) message:NSLocalizedString(@"Permission.ErrorTitleInfo", nil) cancelActionTitle:NSLocalizedString(@"Permission.ErrorCancel", nil) settingActionTitle:NSLocalizedString(@"Permission.ErrorOpenSetting", nil)];
    }
    else
    {
        // do something you want to do
    }
}];

Reference link

License

LTPrivacyPermission use [MIT license](https://github.com/GREENBANYAN/PrivacyPermission/blob/master/LICENSE "MIT License" )

Latest podspec

{
    "name": "LTPrivacyPermission",
    "version": "0.0.1",
    "summary": "LTPrivacyPermission is a library for accessing various system privacy permissions",
    "description": "LTPrivacyPermission is a library for accessing various system privacy permissions, you can use it for more friendly access.",
    "homepage": "https://github.com/lightank/LTPrivacyPermission",
    "license": "MIT",
    "authors": {
        "lightank": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/lightank/LTPrivacyPermission.git",
        "tag": "0.0.1"
    },
    "source_files": "LTPrivacyPermission/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This