From 4d31d9f3faa307c82b48e4cd10f6f439024f7312 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=9C=E5=BA=86=E6=B3=89?= Date: Thu, 10 Nov 2022 15:48:31 +0800 Subject: [PATCH] Update uts-for-android.md --- docs/plugin/uts-for-android.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/plugin/uts-for-android.md b/docs/plugin/uts-for-android.md index ca5968c32..17a38a944 100644 --- a/docs/plugin/uts-for-android.md +++ b/docs/plugin/uts-for-android.md @@ -443,6 +443,15 @@ options.success?.(res) +#### 4.1.10 界面跳转写法 + +android开发中场景的 intent跳转需要传入 目标界面的class对象,目前UTS中仅支持一种写法 + +```uts +let intent = new Intent(getUniActivity(),DemoActivity().javaClass); +getUniActivity()!.startActivity(intent); +``` + --------------------------------- -- GitLab