当前位置:网站首页>What does kotlin collaboration scope and coroutinescope mainscope globalscope viewmodelscope lifecyclescope represent respectively
What does kotlin collaboration scope and coroutinescope mainscope globalscope viewmodelscope lifecyclescope represent respectively
2022-06-12 03:40:00 【Ango cannot move】
First of all, the definition of a cooperation process must be formulated CoroutineScope
He will follow all the processes . Similarly, it can cancel all the processes started by it .
GlobalScope
The declaration cycle is process Grade . Even if Activty And Fragment Has been destroyed , The collaboration is still running .
MainScope Usually in stay Activity Use in . stay onDestory Remember to destroy it manually .
viewModelScope Only in ViewModel Use in . binding viewModel Life cycle of
lifecycleScope. Only in Activity、Fragment Use in . And will be with Activity、Fragment Life cycle binding .
MainScope Use cases
Kotlin Use of process / Use MainScope Management process _ Ango Mobile Blog -CSDN Blog
边栏推荐
- Three ways for ORALCE to process column to row conversion and finally generate table style data
- Unity脚本出现missing时的解决方法
- 成功解决:TypeError: the JSON object must be str, bytes or bytearray, not dict
- 如何修改mysql 查询出来的结果名称 结果1,结果2
- The idea of setting the flash memory management and resource size, and the quantitative relationship among parallelism, slot, and taskmanager quantity
- Data flow diagram of Flink
- 认真工作对自己到底意味着什么?
- 2020-12-06
- How do I make the mouse wheel work in the VB6 ide- How can I make mousewheel work in VB6 IDE?
- 2020-12-17
猜你喜欢

$LastExitCode=0, but $?= False in PowerShell. Redirecting stderr to stdout gives NativeCommandError
![[Hongmeng] use the timer to play a simple game of robbing red envelopes](/img/27/32b65dc90db7f6ece24ad39ff9b0ef.png)
[Hongmeng] use the timer to play a simple game of robbing red envelopes

【mysql】mysql安装

(idea)the file size(2.85M) exceeds configured limit(2.56M). Code insight features are not available

2020-12-06

MongoDB精华总结

Mysql/oracle takes the unique time as the boundary, and the sum is less than or equal to this time, and greater than this time

KV storage separation principle and performance evaluation of nebula graph
![Leetcode 6[finding rules] Z-transform the leetcode path of heroding](/img/c0/aca2eb185ce4b423df9ee171ee91e1.jpg)
Leetcode 6[finding rules] Z-transform the leetcode path of heroding

【clickhouse专栏】新建库角色用户初始化
随机推荐
大整数的加与乘;
hash function
【鸿蒙】 使用定时器做一个简单的抢红包小游戏
[DFS "want" or "don't"] seek subsets; Seeking combination
PostgreSQL basic introduction and deployment
分數大小的比較
Community Conference | the mosn community will release version 1.0 and promote the evolution of the next generation architecture
Go 语法 变量
Network tester operation manual renix rack management
Notes relatives à l'application du certificat de l'AC et de la paire de clés
Convert py file to EXE file
Simple database connection example
字符串处理:
Use of pnpm package management tool
技术经济与企业管理 复习 第四章
Redis gets the set of keys prefixed with XXX
postgresql基本介绍以及部署使用
Inverted string - two solutions
2020-12-12
Functions (arguments, formal parameters, bubbling)