All Projects → FarshadTahmasbi → EzPermission

FarshadTahmasbi / EzPermission

Licence: Apache-2.0 license
Light and easy to use library for managing android runtime permissions

Programming Languages

kotlin
9241 projects
java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to EzPermission

Rxpermissions
Android runtime permissions powered by RxJava2
Stars: ✭ 10,288 (+32050%)
Mutual labels:  android-permissions
PermissionMadeEasy
Android Library for Easily calling Runtime Permission on Android Marshmallow and above
Stars: ✭ 15 (-53.12%)
Mutual labels:  android-permissions
Simplify-Permissions
Android library to simplifies the android permission request at runtime.
Stars: ✭ 22 (-31.25%)
Mutual labels:  android-permissions
RiskInDroid
A tool for quantitative risk analysis of Android applications based on machine learning techniques
Stars: ✭ 69 (+115.63%)
Mutual labels:  android-permissions
startask-permissions
Is a library that helps to handle runtime permissions on Android, entirely written using Kotlin language.
Stars: ✭ 39 (+21.88%)
Mutual labels:  android-permissions
sentry
A lightweight (23KB) wrapper for inline Android permission checks/requests.
Stars: ✭ 22 (-31.25%)
Mutual labels:  android-permissions
EasyPermissions
Request permissions from anywhere as long as you have context.
Stars: ✭ 39 (+21.88%)
Mutual labels:  android-permissions

EzPermission Download

A tiny and easy to use kotlin library for managing android runtime permissions


NOTE:

This library is no longer maintained, Android standard api does the magic: https://developer.android.com/training/permissions/requesting


Gradle setup

Make sure you have jitpack repository in the project level build.gradle:

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}

Then add dependency to the module:

dependencies {
        implementation 'com.github.FarshadTahmasbi:EzPermission:0.1.4'
}

How to use

It's simple, pass all permissions you want to ask for, the result will be divided into: granted, denied and permanently denied!

EzPermission.with(context)
    .permissions(
        Manifest.permission.WRITE_EXTERNAL_STORAGE,
        Manifest.permission.ACCESS_FINE_LOCATION
    )
    .request { granted, denied, permanentlyDenied ->
        //Here you can check results...
    }

⭐️ If you liked it support me with your stars!

License

Copyright 2019 Farshad Tahmasbi

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