https://github.com/boyan01/copermission
android permission util for kotlin coroutines
https://github.com/boyan01/copermission
android-permissions kotlin-android kotlin-coroutines
Last synced: over 1 year ago
JSON representation
android permission util for kotlin coroutines
- Host: GitHub
- URL: https://github.com/boyan01/copermission
- Owner: boyan01
- License: apache-2.0
- Created: 2017-12-26T05:57:46.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-26T12:39:04.000Z (over 8 years ago)
- Last Synced: 2024-10-19T07:51:19.407Z (almost 2 years ago)
- Topics: android-permissions, kotlin-android, kotlin-coroutines
- Language: Kotlin
- Size: 130 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CoPermission
android permission util for kotlin coroutines
## usuage
in your activity for single permission
```kotlin
val isGranted: Boolean = requestPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE)
```
or a number of permissions
```kotlin
val granted : BooleanArray = requestPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE
, Manifest.permission.READ_PHONE_STATE)
```
## license
Apache License Version 2.0