NavDirections

interface NavDirections
androidx.navigation.NavDirections

An interface that describes a navigation operation: action's id and arguments

Summary

Public methods
abstract Bundle

Returns arguments to pass to the destination

abstract Int

Returns a action id to navigate with.

Public methods

getArguments

@NonNull abstract fun getArguments(): Bundle

Returns arguments to pass to the destination

getActionId

@IdRes abstract fun getActionId(): Int

Returns a action id to navigate with.

Return
Int: id of an action