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
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
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