From 0912911c02b8425e2bd1f3e641296735b74d25fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=9C=E5=BA=86=E6=B3=89?= Date: Tue, 9 Jul 2024 17:25:19 +0800 Subject: [PATCH] Update utsandroid.md --- docs/uts/utsandroid.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/uts/utsandroid.md b/docs/uts/utsandroid.md index 2d4f2115..700018e2 100644 --- a/docs/uts/utsandroid.md +++ b/docs/uts/utsandroid.md @@ -230,6 +230,13 @@ UTSAndroid.offAppActivityResult(() => { +```ts +UTSAndroid.onAppActivityBack(() => { + let eventName = "onAppActivityBack- " + Date.now(); + console.log(eventName); +}); + +``` ### offAppActivityBack @@ -242,6 +249,13 @@ UTSAndroid.offAppActivityResult(() => { +```ts +// 移除全部监听 +UTSAndroid.offAppActivityBack(); +// 移除指定监听 +UTSAndroid.offAppActivityBack(() => { +}); +``` ### getAppContext() -- GitLab