The Android Developer Challenge is back! Submit your idea before December 2.

NavDirections

interface NavDirections
androidx.navigation.NavDirections

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

Summary

Public methods

abstract Int

Returns a action id to navigate with.

abstract Bundle

Returns arguments to pass to the destination

Public methods

getActionId

@IdRes abstract fun getActionId(): Int

Returns a action id to navigate with.

Return
Int: id of an action

getArguments

@NonNull abstract fun getArguments(): Bundle

Returns arguments to pass to the destination