ActivityNavigator.Extras.Builder

public final class ActivityNavigator.Extras.Builder


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

Summary

Public constructors

Public methods

final @NonNull ActivityNavigator.Extras.Builder
addFlags(int flags)

Adds one or more Intent.FLAG_ACTIVITY_ flags

final @NonNull ActivityNavigator.Extras

Constructs the final Extras instance.

final @NonNull ActivityNavigator.Extras.Builder

Sets the ActivityOptionsCompat that should be used with ActivityCompat.startActivity.

Public constructors

Builder

public final Builder()

Public methods

addFlags

@NonNull
public final ActivityNavigator.Extras.Builder addFlags(int flags)

Adds one or more Intent.FLAG_ACTIVITY_ flags

Parameters
int flags

the flags to add

build

@NonNull
public final ActivityNavigator.Extras build()

Constructs the final Extras instance.

Returns
ActivityNavigator.Extras

An immutable Extras instance.

setActivityOptions

@NonNull
public final ActivityNavigator.Extras.Builder setActivityOptions(@NonNull ActivityOptionsCompat activityOptions)

Sets the ActivityOptionsCompat that should be used with ActivityCompat.startActivity.

Parameters
@NonNull ActivityOptionsCompat activityOptions

The ActivityOptionsCompat to pass through