赢无翳
赢无翳
  • 发布:2025-01-15 11:35
  • 更新:2025-01-15 11:35
  • 阅读:8

UTS混编如何实现调用kotlin文件里的abstract类

分类:uts

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的方法该怎么实现呢
}
}

2025-01-15 11:35 负责人:无 分享
已邀请:

要回复问题请先登录注册