项目作者: ymkiux

项目描述 :
One line of code realizes package dynamic permission application
高级语言: Kotlin
项目地址: git://github.com/ymkiux/permissions.git
创建时间: 2020-12-18T10:39:40Z
项目社区:https://github.com/ymkiux/permissions

开源协议:Apache License 2.0

下载


BasePermissions

一行代码实现封装动态权限申请

Release Apache Licence

引入

  1. implementation 'com.github.ymkiux:permissions:0.0.01'

简单使用

  1. Permissions.with(requireActivity())
  2. .request(arrayOf(Manifest.permission.READ_EXTERNAL_STORAGE, Manifest.permission.WRITE_EXTERNAL_STORAGE))
  3. .OnAllowCall(object : AllowCallback {
  4. override fun allOwDoWork() {
  5. //do related operations
  6. }
  7. })
  8. .build()

尾言

如果觉得还不错,期待你的star!