From e3245180426069a51b39f0691da0cd5c5facd4c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=9C=E5=BA=86=E6=B3=89?= Date: Sat, 6 May 2023 15:35:39 +0800 Subject: [PATCH] Update uts-for-android.md --- docs/plugin/uts-for-android.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/plugin/uts-for-android.md b/docs/plugin/uts-for-android.md index af2808c0d..279d0a44a 100644 --- a/docs/plugin/uts-for-android.md +++ b/docs/plugin/uts-for-android.md @@ -335,8 +335,9 @@ mediaPlayer.start(); ** 与Application的转换 ** -UTSAndroid.getAppContext() 默认返回是实现了 `Context`抽象类的`Application` 对象 -部分场景,明确需要 Application 对象,那么直接进行转换即可 +UTSAndroid.getAppContext() 默认返回的是 实现了 `Context`抽象类的`Application` 对象 + +部分场景,明确需要 `Application` 对象,那么直接强制类型转换即可 ```ts import Application from 'android.app.Application' -- GitLab