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

Other Useful Business Software
Gen AI apps are built with MongoDB Atlas Icon
Gen AI apps are built with MongoDB Atlas

The database for AI-powered applications.

MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
Start Free
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