ActivityNavigator.Extras.Builder


class ActivityNavigator.Extras.Builder


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

Summary

Public constructors

Public functions

ActivityNavigator.Extras.Builder
addFlags(flags: Int)

Adds one or more Intent.FLAG_ACTIVITY_ flags

ActivityNavigator.Extras

Constructs the final Extras instance.

ActivityNavigator.Extras.Builder

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

Public constructors

Builder

Added in 1.0.0
Builder()

Public functions

addFlags

Added in 1.0.0
fun addFlags(flags: Int): ActivityNavigator.Extras.Builder

Adds one or more Intent.FLAG_ACTIVITY_ flags

Parameters
flags: Int

the flags to add

build

Added in 1.0.0
fun build(): ActivityNavigator.Extras

Constructs the final Extras instance.

Returns
ActivityNavigator.Extras

An immutable Extras instance.

setActivityOptions

Added in 2.0.0
fun setActivityOptions(activityOptions: ActivityOptionsCompat): ActivityNavigator.Extras.Builder

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

Parameters
activityOptions: ActivityOptionsCompat

The ActivityOptionsCompat to pass through