kt文件代码如下:
abstract class BaseActivity : Activity() {
/**
* Permission custom apply
*/
open fun showCustomPermissionApply(permission: Array<String>) {}
/**
* Jump to the permission setting interface processing results
*/
open fun handlePermissionSettingResult(permission: Array<String>) {}
/**
* Permission Listener
*/
var mPermissionResultListener: OnPermissionResultListener? = null
/**
* Set Permission Listener
*/
open fun setOnPermissionResultListener(listener: OnPermissionResultListener?) {
this.mPermissionResultListener = listener
}
}
UTS代码如下:
export class Apply extends Activity implements BaseActivity {
constructor(){
super()
}
static getPermission(options : UTSJSONObject, callback: (res: boolean) => void) {
//这里想实现调用BaseActivity的方法该怎么实现呢
}
}
0 个回复