NavArgumentBuilder



DSL for constructing a new NavArgument

Summary

Public constructors

android

Public functions

NavArgument

Builds the NavArgument by calling NavArgument.Builder.build.

android

Public properties

Any?

An optional default value for this argument.

android
Boolean

Controls if this argument allows null values.

android
NavType<*>

The NavType for this argument.

android

Public constructors

NavArgumentBuilder()

Public functions

build

fun build(): NavArgument

Builds the NavArgument by calling NavArgument.Builder.build.

Public properties

defaultValue

var defaultValueAny?

An optional default value for this argument.

Any object that you set here must be compatible with type, if it was specified.

nullable

var nullableBoolean

Controls if this argument allows null values.

type

var typeNavType<*>

The NavType for this argument.

If you don't set a type explicitly, it will be inferred from the default value of this argument.