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

Added in 1.0.0
public Builder()

Public methods

addFlags

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

Adds one or more Intent.FLAG_ACTIVITY_ flags

Parameters
int flags

the flags to add

build

Added in 1.0.0
public final @NonNull ActivityNavigator.Extras build()

Constructs the final Extras instance.

Returns
@NonNull ActivityNavigator.Extras

An immutable Extras instance.

setActivityOptions

Added in 2.0.0
public final @NonNull 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