/CoPermission

android permission util for kotlin coroutines

Primary LanguageKotlinApache License 2.0Apache-2.0

CoPermission

android permission util for kotlin coroutines

usuage

in your activity for single permission

val isGranted: Boolean = requestPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE)

or a number of permissions

val granted : BooleanArray = requestPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE
                        , Manifest.permission.READ_PHONE_STATE)

license

Apache License Version 2.0