All Projects → MxABC → Lbxpermission

MxABC / Lbxpermission

Licence: mit
iOS常用权限请求判断

Projects that are alternatives of or similar to Lbxpermission

PermissionAgent
一次初始化处处可用的链式编程动态权限请求库
Stars: ✭ 21 (-94.6%)
Mutual labels:  permission
PermissionManager
android6.0之后开始会有权限使用的问题。这个项目演示了如何在代码中动态申请权限。尤其是"存储"这一个在6.0之前不需要申请的权限,本项目以这个作为例子。
Stars: ✭ 21 (-94.6%)
Mutual labels:  permission
Core Nestjs
A simple application demonstrating the basic usage of permissions with NestJS (JWT, Passport, Facebook, Google+, User, Group, Permission)
Stars: ✭ 347 (-10.8%)
Mutual labels:  permission
HeimGuard
🛡 A simple library that allows you to easily manage permissions in your .NET projects.
Stars: ✭ 77 (-80.21%)
Mutual labels:  permission
laravel-rbac
A RBAC package for Laravel.
Stars: ✭ 32 (-91.77%)
Mutual labels:  permission
rbac-react-redux-aspnetcore
A starter template for creating JWT token from ASP.NET Core API project and applying that JWT token authentication on React application
Stars: ✭ 54 (-86.12%)
Mutual labels:  permission
sqlx-adapter
Asynchronous casbin adapter for mysql, postgres, sqlite based on sqlx-rs
Stars: ✭ 27 (-93.06%)
Mutual labels:  permission
Casbin Rs
An authorization library that supports access control models like ACL, RBAC, ABAC in Rust.
Stars: ✭ 375 (-3.6%)
Mutual labels:  permission
Simplify-Permissions
Android library to simplifies the android permission request at runtime.
Stars: ✭ 22 (-94.34%)
Mutual labels:  permission
Django Permission
[Not maintained] An enhanced permission system which support object permission in Django
Stars: ✭ 305 (-21.59%)
Mutual labels:  permission
laravel-casbin
This repository has moved to https://github.com/php-casbin/laravel-authz
Stars: ✭ 42 (-89.2%)
Mutual labels:  permission
access-control
Simple, flexible and reliable access control for NodeJS and Typescript. Supports both RBAC and ABAC.
Stars: ✭ 29 (-92.54%)
Mutual labels:  permission
CustomPermissionsDialogue
Custom Permissions Dialogue is the only permissions library that supports ALL permission request scenarios. This library handles multiple edge cases such as not enabling all permissions or permanently rejecting a permission request.
Stars: ✭ 51 (-86.89%)
Mutual labels:  permission
PermissionDirector
a iOS permission manager writtern by Swift
Stars: ✭ 29 (-92.54%)
Mutual labels:  permission
Shiro Action
基于 Shiro 的权限管理系统,支持 restful url 授权,体验地址 :
Stars: ✭ 357 (-8.23%)
Mutual labels:  permission
Acl
The Hoa\Acl library.
Stars: ✭ 27 (-93.06%)
Mutual labels:  permission
PermissionHelper
👍 简化android6.0动态权限申请过程,一行代码搞定权限申请,可以一次申请单个或多个权限,支持特殊权限的申请
Stars: ✭ 24 (-93.83%)
Mutual labels:  permission
Androidacp
一句话搞定,简化Android 6.0 系统复杂的权限操作
Stars: ✭ 387 (-0.51%)
Mutual labels:  permission
Permissionmanager
Admin interface for managing users, roles, permissions, using Backpack CRUD
Stars: ✭ 363 (-6.68%)
Mutual labels:  permission
Nova Permission
A Laravel Nova tool for Spatie's laravel-permission library
Stars: ✭ 294 (-24.42%)
Mutual labels:  permission

LBXPermission


iOS常用权限获取

1112.gif

调用接口简单,易用,如下面相机和定位权限判断及获取

//相机权限获取,已经有权限了,仍然可通过该接口返回状态
    [LBXPermission authorizeWithType:LBXPermissionType_Camera completion:^(BOOL granted, BOOL firstTime) {
     
        if (granted) {
            //TODO
            //dosth
        }
        else if (!firstTime)
        {
            //不是第一次请求权限,那么可以弹出权限提示,用户选择设置,即跳转到设置界面,设置权限
             [LBXPermissionSetting showAlertToDislayPrivacySettingWithTitle:@"提示" msg:@"没有相机权限,是否前往设置" cancel:@"取消" setting:@"设置"];
        }
    }];
    
    
    //定位
    [LBXPermission authorizeWithType:LBXPermissionType_Location completion:^(BOOL granted, BOOL firstTime) {
        
        if (granted) {
            //TODO
            //dosth
        }
        else if (!firstTime)
        {
            //不是第一次请求权限,那么可以弹出权限提示,用户选择设置,即跳转到设置界面,设置权限
            [LBXPermissionSetting showAlertToDislayPrivacySettingWithTitle:@"提示" msg:@"没有定位权限,是否前往设置" cancel:@"取消" setting:@"设置"];
        }
    }];

install by cocoapods

没有使用到的权限,不要安装,否则Appstore审核不通过

   pod 'LBXPermission/Base'
   pod 'LBXPermission/Camera'
   pod 'LBXPermission/Photo'
   pod 'LBXPermission/Contact'
   pod 'LBXPermission/Location'
   pod 'LBXPermission/Location'
   pod 'LBXPermission/Reminder'
   pod 'LBXPermission/Calendar'
   pod 'LBXPermission/Microphone'
   pod 'LBXPermission/Health'
   pod 'LBXPermission/Net'
   pod 'LBXPermission/Tracking'

install manually

drag folder "LBXPermissions" to your project

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].