NavState
Stay organized with collections
Save and categorize content based on your preferences.
Constant Summary
int |
ENROUTE |
Actively navigating. |
int |
REROUTING |
Actively navigating but searching for a new route. |
int |
STOPPED |
Navigation has ended. |
int |
UNKNOWN |
Error or unspecified state. |
Inherited Method Summary
From interface
java.lang.annotation.Annotation
abstract
Class<? extends Annotation>
|
annotationType()
|
abstract
boolean
|
equals(Object arg0)
|
abstract
int
|
hashCode()
|
abstract
String
|
toString()
|
Constants
public
static
final
int
ENROUTE
Actively navigating. Information about the upcoming maneuver step is available.
Constant Value:
1
public
static
final
int
REROUTING
Actively navigating but searching for a new route. The upcoming maneuver step is not yet
available.
Constant Value:
2
public
static
final
int
STOPPED
public
static
final
int
UNKNOWN
Error or unspecified state.
Constant Value:
0
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-28 UTC.
[null,null,["Last updated 2025-08-28 UTC."],[[["\u003cp\u003e\u003ccode\u003eNavState\u003c/code\u003e is an annotation in the Android SDK that indicates the current state of navigation.\u003c/p\u003e\n"],["\u003cp\u003eThe API is currently in beta and is subject to change without backward compatibility guarantee.\u003c/p\u003e\n"],["\u003cp\u003eIt defines four navigation states: \u003ccode\u003eENROUTE\u003c/code\u003e, \u003ccode\u003eREROUTING\u003c/code\u003e, \u003ccode\u003eSTOPPED\u003c/code\u003e, and \u003ccode\u003eUNKNOWN\u003c/code\u003e, each represented by an integer constant.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eNavState\u003c/code\u003e provides information whether the user is actively navigating, rerouting, has stopped, or if there is an error or the state is unspecified.\u003c/p\u003e\n"]]],[],null,["# NavState\n\npublic abstract @interface **NavState** implements Annotation \n\u003cbr /\u003e\n\n| [Preview](/maps/launch-stages#preview) feature\n\nThe state of navigation. \n\n### Constant Summary\n\n|-----|-------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------|\n| int | [ENROUTE](/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/NavState#ENROUTE) | Actively navigating. |\n| int | [REROUTING](/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/NavState#REROUTING) | Actively navigating but searching for a new route. |\n| int | [STOPPED](/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/NavState#STOPPED) | Navigation has ended. |\n| int | [UNKNOWN](/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/NavState#UNKNOWN) | Error or unspecified state. |\n\n### Inherited Method Summary\n\nFrom interface java.lang.annotation.Annotation \n\n|----------------------------------------|---------------------|\n| abstract Class\\\u003c? extends Annotation\\\u003e | annotationType() |\n| abstract boolean | equals(Object arg0) |\n| abstract int | hashCode() |\n| abstract String | toString() |\n\nConstants\n---------\n\n#### public static final int\n**ENROUTE**\n\nActively navigating. Information about the upcoming maneuver step is available. \nConstant Value: 1 \n\n#### public static final int\n**REROUTING**\n\nActively navigating but searching for a new route. The upcoming maneuver step is not yet\navailable. \nConstant Value: 2 \n\n#### public static final int\n**STOPPED**\n\nNavigation has ended. \nConstant Value: 3 \n\n#### public static final int\n**UNKNOWN**\n\nError or unspecified state. \nConstant Value: 0"]]