当前位置:   article > 正文

requestPermissions 请求权限 (中文翻译小组)

requestpermissions

requestPermissions  请求权限方法

Added in API level 23

该权限从API 23开始新增

public final void requestPermissions (String[] permissions, 
                int requestCode)

public final void requestPermissions (String[] 请求权限数组, int 请求代码)

 

Requests permissions to be granted to this application.

请求授予此应用程序的权限。

These permissions must be requested in your manifest,

这些权限必须在您的清单中请求,

 

they should not be granted to your app, and they should have protection level dangerous,

不应授予您的应用程序,并且它们应该具有危险的保护级别,

regardless whether they are declared by the platform or a third-party app.

无论它们是由平台还是第三方应用程序声明的。


Signature permissions PermissionInfo.PROTECTION_SIGNATURE are granted at install time if requested in the manifest and the signature of your app matches the signature of the app declaring the permissions.

<
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/盐析白兔/article/detail/283720
推荐阅读
相关标签
  

闽ICP备14008679号