Skip to content

meiyukun/PermissionX

Repository files navigation

PermissionX

简化Android运行时请求权限的开源库。

添加如下配置,即可直接使用

dependencies {
    implementation 'com.qingyan.lib:permissionx:1.0.0'
}

调用方法用例:

PermissionX.request(this,Manifest.permission.CALL_PHONE
                ,Manifest.permission.WRITE_EXTERNAL_STORAGE)
        {success,deniedList->
            if (success){
                Toast.makeText(this,"权限都获得了",Toast.LENGTH_SHORT).show()
            }else{
                Toast.makeText(this,"权限未全获得:$deniedList",Toast.LENGTH_SHORT).show()
            }
        }
        ```

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages