提交 062d5fc1 编写于 作者: 杜庆泉's avatar 杜庆泉

Update utsandroid.md

上级 c56fc649
......@@ -521,6 +521,20 @@ context.startActivity(intent);
<!-- UTSJSON.UTSAndroid.getJavaClass.compatibility -->
```uts
export function getJavaClassTest() : boolean {
let dispatcherClass = UTSAndroid.getJavaClass(UTSAndroid.getDispatcher())
if("io.dcloud.uts.task.UTSTaskDispatcher" == dispatcherClass.name){
return true
}
let applicationClass = UTSAndroid.getJavaClass(UTSAndroid.getAppContext()!)
if("io.dcloud.uniapp.UniApplication" == applicationClass.name){
return true
}
return false
}
```
### getTopPageActivity
<!-- UTSJSON.UTSAndroid.getTopPageActivity.description -->
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册