Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

ActionOnlyNavDirections

public final class ActionOnlyNavDirections
extends Object implements NavDirections

java.lang.Object
   ↳ androidx.navigation.ActionOnlyNavDirections


An implementation of NavDirections without any arguments.

This class should not be used directly; prefer the NavDirections classes generated by the Safe Args plugin.

Summary

Public constructors

ActionOnlyNavDirections(int actionId)

Public methods

boolean equals(Object object)
int getActionId()

Returns a action id to navigate with.

Bundle getArguments()

Returns arguments to pass to the destination

int hashCode()
String toString()

Inherited methods

Public constructors

ActionOnlyNavDirections

public ActionOnlyNavDirections (int actionId)

Parameters
actionId int

Public methods

equals

public boolean equals (Object object)

Parameters
object Object

Returns
boolean

getActionId

public int getActionId ()

Returns a action id to navigate with.

Returns
int id of an action

getArguments

public Bundle getArguments ()

Returns arguments to pass to the destination

Returns
Bundle

hashCode

public int hashCode ()

Returns
int

toString

public String toString ()

Returns
String