6월 3일의 ⁠#Android11: 베타 버전 출시 행사에 참여하세요.

NavDirections

public interface NavDirections

androidx.navigation.NavDirections


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

Summary

Public methods

abstract int getActionId()

Returns a action id to navigate with.

abstract Bundle getArguments()

Returns arguments to pass to the destination

Public methods

getActionId

public abstract int getActionId ()

Returns a action id to navigate with.

Returns
int id of an action

getArguments

public abstract Bundle getArguments ()

Returns arguments to pass to the destination

Returns
Bundle