We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
大佬你好,我在学习你的PageManager代码,我看到当SwitchTo一个页面时,会判断这个页面的isCached是否为真,若为真,则更改状态为WILL_APPEAR,这时就会设置该页面可见并启动页面切换动画。而若isCached为假,则会进入LOAD状态,这时会创建页面的root并执行onViewLoad(); 我想问一下此处的Cached是指什么?我为什么没有找到具体的执行某个函数将某个页面Cach的代码,只是看到有些地方将isCached赋值为真,有些地方将isCached赋值为假。 不知道我能不能说明白我的意思,希望大佬能解答我的疑惑。
The text was updated successfully, but these errors were encountered:
cache的意思是当此页面退出时,不删除页面,而且将页面隐藏。当页面重新进入时,页面可以还原之前退出时的状态。
cache功能是可配置的:
SetCustomCacheEnable()
SetCustomAutoCacheEnable()
注意,这两个函数推荐在onCustomAttrConfig()里进行调用,cache有关配置的请求在这里被同步到调度器中,不要直接访问cache相关标志位,可能会导致内存泄漏。
onCustomAttrConfig()
Sorry, something went wrong.
谢谢大佬!
No branches or pull requests
大佬你好,我在学习你的PageManager代码,我看到当SwitchTo一个页面时,会判断这个页面的isCached是否为真,若为真,则更改状态为WILL_APPEAR,这时就会设置该页面可见并启动页面切换动画。而若isCached为假,则会进入LOAD状态,这时会创建页面的root并执行onViewLoad();
我想问一下此处的Cached是指什么?我为什么没有找到具体的执行某个函数将某个页面Cach的代码,只是看到有些地方将isCached赋值为真,有些地方将isCached赋值为假。
不知道我能不能说明白我的意思,希望大佬能解答我的疑惑。
The text was updated successfully, but these errors were encountered: