-
Notifications
You must be signed in to change notification settings - Fork 741
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TypeError: 对象 floaty 不存在方法 checkPermission. #47
Comments
AutoJs6 v6.3.0 增加了 |
为啥不和原作者一样啊,用floaty.requestPermission。这样软件适配会好点 |
@hduwhyso |
6.4.1还是提示不存在方法checkPermission。floaty.checkPermission()这个命令用不了 |
目前AJ6的方法是floaty.hasPermission();能不能和原版一样,也用floaty.checkPermission()这个方法。 |
AutoJs6 将继续保持 按照 Android 的多数方法签名规律, 总结权限相关的方法如下.
另外还有几个 AutoJs6 常用的权限相关的方法
AutoJs6 将尽量保证与 Auto.js 4.x 保持 API 的一致, 但为了更贴近方法名称的语义, checkPermission 将与原有 API 存在出入. 如果需要兼容其他版本 Auto.js, 可使用类似以下条件语句: let hasFloatyPermission = context.packageName.includes('autojs6')
? floaty.hasPermission()
: floaty.checkPermission();
console.log(hasFloatyPermission); |
No description provided.
The text was updated successfully, but these errors were encountered: