提交 0912911c 编写于 作者: 杜庆泉's avatar 杜庆泉

Update utsandroid.md

上级 908113e3
......@@ -230,6 +230,13 @@ UTSAndroid.offAppActivityResult(() => {
<!-- UTSJSON.UTSAndroid.onAppActivityBack.compatibility -->
```ts
UTSAndroid.onAppActivityBack(() => {
let eventName = "onAppActivityBack- " + Date.now();
console.log(eventName);
});
```
### offAppActivityBack
......@@ -242,6 +249,13 @@ UTSAndroid.offAppActivityResult(() => {
<!-- UTSJSON.UTSAndroid.offAppActivityBack.compatibility -->
```ts
// 移除全部监听
UTSAndroid.offAppActivityBack();
// 移除指定监听
UTSAndroid.offAppActivityBack(() => {
});
```
### getAppContext()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册