diff --git a/docs/uts/utsandroid.md b/docs/uts/utsandroid.md index 2d4f21150f7072aadf1729b00004e662da6d522f..700018e29058e03debebe4c60b9914d36ce99e67 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()