All Projects → superjobru → kotlin-permissions

superjobru / kotlin-permissions

Licence: other
An Android library, written in Kotlin, which helps avoid boilerplate code when your request runtime permissions.(KotlinPermissions)

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to kotlin-permissions

Easypermission
一个非常轻便而且可用的Android动态权限申请库
Stars: ✭ 192 (+242.86%)
Mutual labels:  permissions
Kpermissions
A Kotlin library which helps to request runtime permissions in Android.
Stars: ✭ 253 (+351.79%)
Mutual labels:  permissions
advancedPermissionHandler
This Android library is for handle running time permissions in simplest way!
Stars: ✭ 13 (-76.79%)
Mutual labels:  permissions
Drf Access Policy
Declarative access policies/permissions modeled after AWS' IAM policies.
Stars: ✭ 200 (+257.14%)
Mutual labels:  permissions
Spring Boot Start Current
Spring Boot 脚手架 Mybatis Spring Security JWT 权限 Spring Cache + Redis
Stars: ✭ 246 (+339.29%)
Mutual labels:  permissions
async-permissions
Easy handling for Android-M permission based on async/await
Stars: ✭ 25 (-55.36%)
Mutual labels:  permissions
Voice Overlay Android
🗣 An overlay that gets your user’s voice permission and input as text in a customizable UI
Stars: ✭ 189 (+237.5%)
Mutual labels:  permissions
PermissionManager
This Library automatically search for permission in androidmanifests file and request for the same
Stars: ✭ 45 (-19.64%)
Mutual labels:  permissions
Graphql Shield
🛡 A GraphQL tool to ease the creation of permission layer.
Stars: ✭ 3,121 (+5473.21%)
Mutual labels:  permissions
graphql authorize
Authorization helpers for ruby-graphql fields
Stars: ✭ 23 (-58.93%)
Mutual labels:  permissions
Appy
🚀 A full stack boilerplate web app
Stars: ✭ 225 (+301.79%)
Mutual labels:  permissions
Bouncer
Eloquent roles and abilities.
Stars: ✭ 2,763 (+4833.93%)
Mutual labels:  permissions
ada-security
Ada Security - OAuth 2.0 client and server framework to secure web applications
Stars: ✭ 18 (-67.86%)
Mutual labels:  permissions
Adonis Acl
demo app: https://github.com/enniel/adonis-acl-blog-demo
Stars: ✭ 195 (+248.21%)
Mutual labels:  permissions
rbac
Simple RBAC/ACL for Laravel 8 caching and permission groups.
Stars: ✭ 43 (-23.21%)
Mutual labels:  permissions
Sanic Jwt
Authentication, JWT, and permission scoping for Sanic
Stars: ✭ 189 (+237.5%)
Mutual labels:  permissions
Rbac
Hierarchical Role-Based Access Control for Node.js
Stars: ✭ 254 (+353.57%)
Mutual labels:  permissions
ngx-access
Add access control to your components using hierarchical configuration with logical expressions.
Stars: ✭ 21 (-62.5%)
Mutual labels:  permissions
bastion
No description or website provided.
Stars: ✭ 11 (-80.36%)
Mutual labels:  permissions
spicedb
Open Source, Google Zanzibar-inspired fine-grained permissions database
Stars: ✭ 3,358 (+5896.43%)
Mutual labels:  permissions

Kotlin Permissions

Build Status API Android Arsenal

An Android library, written in Kotlin, which helps avoid boilerplate code when your request runtime permissions. You don't need to override onPermissionResult, all results will be in one place.

Gradle

Download

dependencies {
    implementation 'ru.superjob:kotlin-permissions:1.0.3'
}

Usage

Call a KotlinPermissions instance :

KotlinPermissions.with(this) // where this is an FragmentActivity instance
                    .permissions(Manifest.permission.ACCESS_FINE_LOCATION)
                    .onAccepted { permissions ->
                   		//List of accepted permissions
                    }
                    .onDenied { permissions ->
                   		//List of denied permissions
                    }
                    .onForeverDenied { permissions ->
                   		//List of forever denied permissions
                    }
                    .ask()

You can request more than one permission:

.permissions(Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.CAMERA)

License

Copyright (C) 2018

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
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].