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

Builder

class Builder
kotlin.Any
   ↳ androidx.navigation.ActivityNavigator.Extras.Builder

Builder for constructing new Extras instances. The resulting instances are immutable.

Summary

Public constructors

Builder for constructing new Extras instances.

Public methods
ActivityNavigator.Extras.Builder
setActivityOptions(@NonNull activityOptions: ActivityOptionsCompat)

Sets the ActivityOptionsCompat that should be used with ActivityCompat#startActivity(Context, Intent, Bundle).

ActivityNavigator.Extras.Builder
addFlags(flags: Int)

Adds one or more Intent.FLAG_ACTIVITY_ flags

ActivityNavigator.Extras

Constructs the final Extras instance.

Public constructors

<init>

Builder()

Builder for constructing new Extras instances. The resulting instances are immutable.

Public methods

setActivityOptions

@NonNull fun setActivityOptions(@NonNull activityOptions: ActivityOptionsCompat): ActivityNavigator.Extras.Builder

Sets the ActivityOptionsCompat that should be used with ActivityCompat#startActivity(Context, Intent, Bundle).

Parameters
activityOptions ActivityOptionsCompat: The ActivityOptionsCompat to pass through
Return
ActivityNavigator.Extras.Builder: this Builder

addFlags

@NonNull fun addFlags(flags: Int): ActivityNavigator.Extras.Builder

Adds one or more Intent.FLAG_ACTIVITY_ flags

Parameters
flags Int: the flags to add
Return
ActivityNavigator.Extras.Builder: this Builder

build

@NonNull fun build(): ActivityNavigator.Extras

Constructs the final Extras instance.

Return
ActivityNavigator.Extras: An immutable Extras instance.