Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

NavArgsLazy

class NavArgsLazy<Args : NavArgs> : Lazy<Args>
kotlin.Any
   ↳ androidx.navigation.NavArgsLazy

An implementation of Lazy used by android.app.Activity.navArgs and android.support.v4.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
<init>(navArgsClass: KClass<Args>, argumentProducer: () -> Bundle)

An implementation of Lazy used by android.app.Activity.navArgs and android.support.v4.app.Fragment.navArgs.

Public methods
Boolean

Properties
Args

Public constructors

<init>

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

An implementation of Lazy used by android.app.Activity.navArgs and android.support.v4.app.Fragment.navArgs.

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

Public methods

isInitialized

fun isInitialized(): Boolean

Properties

value

val value: Args