1 Star 1 Fork 0

Skeaner / EasyPermissionDialog

Create your Gitee Account
Explore and code with more than 8 million developers,Free private repositories !:)
Sign up
Clone or Download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

EasyPermissionDialog

#####便利的对话框提示应用的权限请求

1.临时拒绝权限的情况

          EasyPermissionDialog.build(this)
                            .permissions(Manifest.permission.WRITE_EXTERNAL_STORAGE, Manifest.permission.CALL_PHONE)
                            .typeTemporaryDeny(new EasyPermissionDialog.RequestCallback() {
                                @Override
                                public void onDeny() {
                                }

                                @Override
                                public void onAllow() {
                                }
                            })
                            .show();

2.永久拒绝权限的情况

         EasyPermissionDialog.build(this)
                            .permissions(Manifest.permission.WRITE_EXTERNAL_STORAGE, Manifest.permission.CALL_PHONE)
                            .typeNeverAsk(1, new EasyPermissionDialog.GoSettingCallback() {
                                @Override
                                public void onDeny() {
                                }

                            })
                            .show();

Repository Comments ( 0 )

Sign in to post a comment

About

Android M的权限提示对话框 便利使用 expand collapse
Android
GPL-2.0
Cancel

Releases (1)

All

Contributors

All

Activities

Load More
can not load any more
Android
1
https://gitee.com/skean/easypermissiondialog.git
git@gitee.com:skean/easypermissiondialog.git
skean
easypermissiondialog
EasyPermissionDialog
master

Search