EasyPermissions is a wrapper library to simplify basic system permissions logic when targeting Android M or higher. If your app is written in Kotlin consider the easypermissions-ktx library which adds Kotlin extensions to the core EasyPermissions library. To begin using EasyPermissions, have your Activity (or Fragment) override the onRequestPermissionsResult method. If all of the permissions in a given request are granted, all methods annotated with the proper request code will be executed(be sure to have an unique request code). The annotated method needs to be void and without input parameters (instead, you can use onSaveInstanceState in order to keep the state of your suppressed parameters). This is to simplify the common flow of needing to run the requesting method after all of its permissions have been granted. Optionally, for a finer control, you can have your Activity / Fragment implement the PermissionCallbacks interface.

Features

  • Simplify basic system permissions logic when targeting Android M or higher
  • Implement the EasyPermissions.RationaleCallbacks if you want to interact with the rationale dialog
  • For a finer control, you can have your Activity / Fragment implement the PermissionCallbacks interface
  • Check if the app already has the required permissions
  • Request the system permissions and show the rationale string provided if necessary
  • Simplify the common flow of needing to run the requesting method after all of its permissions have been granted

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

Apache License V2.0

Follow EasyPermissions

EasyPermissions Web Site

You Might Also Like
Bright Data - All in One Platform for Proxies and Web Scraping Icon
Bright Data - All in One Platform for Proxies and Web Scraping

Say goodbye to blocks, restrictions, and CAPTCHAs

Bright Data offers the highest quality proxies with automated session management, IP rotation, and advanced web unlocking technology. Enjoy reliable, fast performance with easy integration, a user-friendly dashboard, and enterprise-grade scaling. Powered by ethically-sourced residential IPs for seamless web scraping.
Get Started
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of EasyPermissions!

Additional Project Details

Operating Systems

Android

Programming Language

Java

Related Categories

Java Libraries

Registered

2021-06-22