MavericksNavDirections

class MavericksNavDirections : NavDirections

MavericksNavDirections.create must be used to pick between a Parcelable or Serializable data argument.

Parameters

actionId
  • the navigation graph action ID.

parcelable
  • A Parcelable MvRx argument that is passed as the Mavericks.KEY_ARG fragment argument

serializable
  • A Serializable MvRx argument that is passed as the Mavericks.KEY_ARG fragment argument

title
  • an optional title that the destination can extract in the graph definition

Graph usage example.

<fragment
android:id="@+id/financialAccountDetailsFragment"
android:name="example.app.UserSettingsFragment"
android:label="{mvrx:arg:title}">

<argument
android:name="mavericks:arg"
app:argType="com.example.ExampleNavArgs" />

<argument
android:name="mavericks:arg:title"
app:argType="string" />

</fragment>

Types

Companion
Link copied to clipboard
object Companion

Functions

getActionId
Link copied to clipboard
open override fun getActionId(): Int
getArguments
Link copied to clipboard
open override fun getArguments(): Bundle