diff --git a/docs/plugin/uts-for-android.md b/docs/plugin/uts-for-android.md index fe9bac43196d22f17af091acac0840e192569998..d185dd3d39a43864c09a411155a8ed37e4dc4718 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原生环境配置