ActivityNavigator.Extras.Builder

public static final class ActivityNavigator.Extras.Builder
extends Object

java.lang.Object
   ↳ androidx.navigation.ActivityNavigator.Extras.Builder


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

Summary

Public constructors

ActivityNavigator.Extras.Builder()

Public methods

ActivityNavigator.Extras.Builder addFlags(int flags)

Adds one or more Intent.FLAG_ACTIVITY_ flags

ActivityNavigator.Extras build()

Constructs the final ActivityNavigator.Extras instance.

ActivityNavigator.Extras.Builder setActivityOptions(ActivityOptionsCompat activityOptions)

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

Inherited methods

Public constructors

ActivityNavigator.Extras.Builder

public ActivityNavigator.Extras.Builder ()

Public methods

addFlags

public ActivityNavigator.Extras.Builder addFlags (int flags)

Adds one or more Intent.FLAG_ACTIVITY_ flags

Parameters
flags int: the flags to add

Returns
ActivityNavigator.Extras.Builder this ActivityNavigator.Extras.Builder

build

public ActivityNavigator.Extras build ()

Constructs the final ActivityNavigator.Extras instance.

Returns
ActivityNavigator.Extras An immutable ActivityNavigator.Extras instance.

setActivityOptions

public ActivityNavigator.Extras.Builder setActivityOptions (ActivityOptionsCompat activityOptions)

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

Parameters
activityOptions ActivityOptionsCompat: The ActivityOptionsCompat to pass through

Returns
ActivityNavigator.Extras.Builder this ActivityNavigator.Extras.Builder