class NavArgsLazy<Args : NavArgs> : Lazy


An implementation of Lazy used by android.app.Activity.navArgs and androidx.fragment.app.Fragment.navArgs.

argumentProducer is a lambda that will be called during initialization to provide arguments to construct an Args instance via reflection.

Summary

Public constructors

<Args : NavArgs> NavArgsLazy(
    navArgsClass: KClass<Args>,
    argumentProducer: () -> SavedState
)

Public functions

open Boolean

Public properties

open Args

Public constructors

<Args : NavArgs> NavArgsLazy(
    navArgsClass: KClass<Args>,
    argumentProducer: () -> SavedState
)

Public functions

isInitialized

Added in 1.0.0
open fun isInitialized(): Boolean

Public properties

value

Added in 1.0.0
open val value: Args