KT原文件接口代码如下:
package uts.sdk.modules.Getpermisson
/**
* @author:luck
* @date:2020/4/24 11:48 AM
* @describe:OnRequestPermissionListener
*/
interface OnRequestPermissionListener {
/**
* Permission request result
*
* @param permission
* @param isResult
*/
fun onCall(permission: Array<String>, isResult: Boolean)
}
UTS代码如下报错error: Cannot create an instance of an abstract class:
abstract class RequestPermission implements OnRequestPermissionListener {
override onCall(permission: Array<string>, isResult: boolean) {
if (isResult) {
console.log("权限同意")
} else {
console.log("权限不同意")
}
}
}
0 个回复