EasyPermissionRequest is a user-friendly Android open-source library that simplifies the process of requesting runtime permissions in your Android applications. With this library, you can easily integrate runtime permission handling without the hassle of writing boilerplate code.
To integrate EasyPermissionRequest into your project, follow these simple steps:
-
repositories { ... maven ("https://jitpack.io") }
-
dependencies { ... implementation("com.github.Dinesh2811:EasyPermissionRequest:1.1") }
-
val permissionRequestBuilder = EasyPermissionRequestBuilder(this) val permissionsToRequest = arrayOf(Manifest.permission.ACCESS_COARSE_LOCATION, Manifest.permission.CAMERA) permissionRequestBuilder.setPermissionCallback(object : PermissionCallback { override fun onPermissionCallback(granted: List<String>, denied: List<String>) { // TODO("Implement your code here") } }).requestPermission(permissionsToRequest)
-
val permissionRequestBuilder = EasyPermissionRequestBuilder(this) val permissionsToRequest = arrayOf(Manifest.permission.ACCESS_COARSE_LOCATION, Manifest.permission.CAMERA) permissionRequestBuilder .setLogging(true) .repeatRequestPermission(true) .setPermissionCallback(object : PermissionCallbackExperimental{ override fun onPermissionGranted(granted: List<String>) { // TODO("Implement your code for granted permission here") } override fun onPermissionDenied(denied: List<String>, permanentlyDenied: List<String>, cancelled: List<String>) { // TODO("Implement your code here") } }) .requestPermission(permissionsToRequest)
Whether you're looking to offer your expertise, suggest improvements, report issues, or ask questions, your involvement is highly valued and much appreciated. Any kind of contributions from the community are most welcomed.
-
If you come across any bugs, glitches, or unexpected behavior, please report them using the GitHub issue tracker. Be sure to provide detailed steps to reproduce the issue and any relevant information.
-
Have a fix or enhancement in mind? You can submit pull requests with your proposed changes. We'll review them and work together to integrate valuable additions into the library.
-
Have ideas for new features or improvements? Feel free to open discussions in the GitHub repository. Your input can help shape the future of EasyPermissionRequest.
If you have questions about using the library, implementing specific features, or understanding the code, don't hesitate to reach out. Use the GitHub issue tracker to ask questions or seek clarifications.
If you find EasyPermissionRequest useful, consider sharing it with fellow developers and communities. Let's make permission handling easier for everyone!
Licensed under the terms of the Apache License 2.0. See License for details.
Copyright 2023 Dinesh K
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.