Update host-lifecycle documentation

This commit is contained in:
2022-09-25 00:53:04 +08:00
parent 8bfb76cdf6
commit 5335269d88

View File

@@ -67,7 +67,7 @@ loadApp(name = "com.example.demo") {
registerReceiver(Intent.ACTION_USER_PRESENT) { context, intent -> registerReceiver(Intent.ACTION_USER_PRESENT) { context, intent ->
// ... // ...
} }
// 注册多个广播监听 - 会同时回调多次 // 注册多个广播监听会同时回调多次
registerReceiver(Intent.ACTION_PACKAGE_CHANGED, Intent.ACTION_TIME_TICK) { context, intent -> registerReceiver(Intent.ACTION_PACKAGE_CHANGED, Intent.ACTION_TIME_TICK) { context, intent ->
// ... // ...
} }