Comments (2)
cache的意思是当此页面退出时,不删除页面,而且将页面隐藏。当页面重新进入时,页面可以还原之前退出时的状态。
cache功能是可配置的:
SetCustomCacheEnable()
设置自定义cache使能 (默认关闭),用户手动管理页面的生命周期,页面不会被调度器自动删除。SetCustomAutoCacheEnable()
设置自动cache使能 (默认打开),由调度器自动管理页面的生命周期:当push页面时,上一个页面的cache被打开;当页面pop时,被退出页面cache失能,页面被彻底删除。
注意,这两个函数推荐在onCustomAttrConfig()
里进行调用,cache有关配置的请求在这里被同步到调度器中,不要直接访问cache相关标志位,可能会导致内存泄漏。
from x-track.
谢谢大佬!
from x-track.
Related Issues (20)
- 行者新出了个码表辰,我拆开看了一下它用的芯片,希望能给2代芯片选型一些参考 HOT 1
- 码表底部的2个孔,如何与码表支架进行组合 HOT 1
- Add external folder to visual studio HOT 5
- Spam HOT 1
- 小bug,中断中提早拉高sc脚导致丢失数据
- 关于添加新控件的问题 HOT 2
- 可以考虑做一个只要离线地图界面的码表吗 HOT 2
- 对于mvp模式的一个小问题 HOT 2
- AT32F403ACGU7 是QFN封裝,可以焊接嗎,板子兼容嗎 HOT 1
- 最小分辨率支持多少? HOT 2
- CH343貌似没有作用,是不是也不用焊了? HOT 1
- 请问作者如何实现测量剩余电量 HOT 2
- 低电压时电量电压显示不准确 HOT 1
- 不同的pcb文件格式
- 能否给欧洲用户更新点免费地图 HOT 2
- 编译的时候出现14个error HOT 3
- BOM AON3400 是否应该是 AO3400? HOT 2
- 可以正常开机和充电,但是按钮一松手就断电 HOT 1
- 无法定位程序输入点'PssCaptureSnapshot' 于动态链接库KERNEL32.dll
- 支持嵌入式linux平台么 HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from x-track.