From 722ad98671fbe4cf8121baee046268101521314a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=9C=E5=BA=86=E6=B3=89?= Date: Thu, 21 Dec 2023 17:43:47 +0800 Subject: [PATCH] Update uts-for-android.md --- docs/plugin/uts-for-android.md | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/docs/plugin/uts-for-android.md b/docs/plugin/uts-for-android.md index fe9bac43..d185dd3d 100644 --- a/docs/plugin/uts-for-android.md +++ b/docs/plugin/uts-for-android.md @@ -157,19 +157,6 @@ UTSAndroid.getDispatcher("main").async(function(_){ },null) ``` -如果是android原生api 需要部分代码必须执行在UI线程,则需要通过原生api进行操作: - -```ts -class AddUIRunnable extends Runnable { - override run():void { - // do something - console.log("这里是android平台主线程 :" + Thread.currentThread().getName()) - } -}; -let uiRunable = new AddUIRunnable(); -getUniActivity()!.runOnUiThread(uiRunable) -``` - ## 3 Android原生环境配置 -- GitLab