Skip to content

Easier to use Android runtime permissions with LiveData !

License

Notifications You must be signed in to change notification settings

werbhelius/Azure

Repository files navigation

Azure

Easier to use Android runtime permissions with LiveData

Hex.pm Download API

Dependency

implementation 'com.werb.azure:azure:0.3.0'
implementation 'android.arch.lifecycle:extensions:$last_version'

Use

// support dynamic permissions and dangerous permissions
Azure(this)
    .permissions(Manifest.permission.READ_EXTERNAL_STORAGE, Settings.ACTION_MANAGE_OVERLAY_PERMISSION)
    .subscribe {
        if (it) {
            // do something when permission isGranted
        } else {
            // do something when permission isDenied
        }
    }.request()

About

Easier to use Android runtime permissions with LiveData !

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published