当前位置:网站首页>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
边栏推荐
- Go recursive infinite classification
- [Business Research Report] Research Report on super automation technology and application (2022) -- download link attached
- 2022 communication industry ultimate Exhibition Guide
- [string] determine whether S2 is the rotation string 2 of S1
- UI consistency design of products
- 成功解决:WARNING: There was an error checking the latest version of pip.
- Functions (arguments, formal parameters, bubbling)
- postgresql基本介绍以及部署使用
- [Business Research Report] the salary growth rate report of each industry in 2022 includes regional growth rate - download link is attached
- 电商中台系统架构
猜你喜欢

成功解决:WARNING: There was an error checking the latest version of pip.

Eight fallacies of distributed computing

Community Conference | the mosn community will release version 1.0 and promote the evolution of the next generation architecture

2020-12-06

laravel 8 选用 jwt 进行接口验证
![[MySQL] MySQL installation](/img/f0/2b65b71e79ea0cc0790e4848092374.png)
[MySQL] MySQL installation

分布式计算的八大谬论

The rise of another domestic mobile phone chip is close to the height reached by Huawei

字符串处理:
![[data recovery in North Asia] data recovery in which the logical volume of the server is changed and the file system is damaged due to system reinstallation](/img/7f/ad628a45bec0ac9a5586d743ca0310.jpg)
[data recovery in North Asia] data recovery in which the logical volume of the server is changed and the file system is damaged due to system reinstallation
随机推荐
Fastjson enables safemode, closes autotype, and removes security vulnerabilities
Absolute positioning three ways to center the box
Youcans' opencv lesson - 10 Image restoration and reconstruction
Review of technical economy and Enterprise Management Chapter 4
Eight fallacies of distributed computing
The idea of setting the flash memory management and resource size, and the quantitative relationship among parallelism, slot, and taskmanager quantity
The rise of another domestic mobile phone chip is close to the height reached by Huawei
分数大小的比较
19.tornado项目之优化数据库查询
数据库精选 60 道面试题
Key points of code neatness (III)
Unity脚本出現missing時的解决方法
顺序表与链表-----进阶
In 2022, don't you know the difference between arrow function and ordinary function?
2020-12-12
R语言write函数:使用write函数将数据写入RStudio控制台、write函数将数据写入新的Rstudio窗口(启动新的窗口)
What is the core of Web3?
Community Conference | the mosn community will release version 1.0 and promote the evolution of the next generation architecture
2020-12-10
简单的数据库连接示例