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
addFlags(flags: Int)

Adds one or more Intent.FLAG_ACTIVITY_ flags

ActivityNavigator.Extras

Constructs the final Extras instance.

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

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

Public constructors

<init>

Builder()

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

Public methods

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.

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