public final class

ActivityNavigator.Extras.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.navigation.ActivityNavigator.Extras.Builder

Overview

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

Summary

Constructors
publicBuilder()

Methods
public ActivityNavigator.Extras.BuilderaddFlags(int flags)

Adds one or more Intent.FLAG_ACTIVITY_ flags

public ActivityNavigator.Extrasbuild()

Constructs the final ActivityNavigator.Extras instance.

public ActivityNavigator.Extras.BuildersetActivityOptions(ActivityOptionsCompat activityOptions)

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

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder()

Methods

public ActivityNavigator.Extras.Builder addFlags(int flags)

Adds one or more Intent.FLAG_ACTIVITY_ flags

Parameters:

flags: the flags to add

Returns:

this ActivityNavigator.Extras.Builder

public ActivityNavigator.Extras.Builder setActivityOptions(ActivityOptionsCompat activityOptions)

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

Parameters:

activityOptions: The ActivityOptionsCompat to pass through

Returns:

this ActivityNavigator.Extras.Builder

Constructs the final ActivityNavigator.Extras instance.

Returns:

An immutable ActivityNavigator.Extras instance.