Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

Extras

class Extras : Navigator.Extras
kotlin.Any
   ↳ androidx.navigation.ActivityNavigator.Extras

Extras that can be passed to ActivityNavigator to customize what ActivityOptionsCompat and flags are passed through to the call to ActivityCompat#startActivity(Context, Intent, Bundle).

Summary

Nested classes

Builder for constructing new Extras instances.

Public methods
Int

Gets the Intent.FLAG_ACTIVITY_ flags that should be added to the Intent.

ActivityOptionsCompat?

Gets the ActivityOptionsCompat that should be used with ActivityCompat#startActivity(Context, Intent, Bundle).

Public methods

getFlags

fun getFlags(): Int

Gets the Intent.FLAG_ACTIVITY_ flags that should be added to the Intent.

getActivityOptions

@Nullable fun getActivityOptions(): ActivityOptionsCompat?

Gets the ActivityOptionsCompat that should be used with ActivityCompat#startActivity(Context, Intent, Bundle).