bundleLazy

inline fun <T> FragmentActivity?.bundleLazy(name: String? = null, crossinline defValue: () -> T): ReadWriteProperty<FragmentActivity?, T>
inline fun <T> Fragment?.bundleLazy(name: String? = null, crossinline defValue: () -> T): ReadWriteProperty<Fragment?, T>

从序列化中检索到数据

Parameters

name

键名

defValue

懒加载默认值回调函数