PageCache

class PageCache

页面缓存类,用于记住页面中那些变量。 使用该类构造的remember方法:rememberPrivateInPage,rememberInPage的生命周期长度比普通的remember要长,和当前页面PageEntry的生命周期一样长。

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun <T : Any> PageCache.cache(key: String, state: CacheState = NormalCache, block: () -> T): T