Google 致力于为黑人社区推动种族平等。查看具体举措

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