AI-generated Key Takeaways
-
NavStateis an annotation in the Android SDK that indicates the current state of navigation. -
The API is currently in beta and is subject to change without backward compatibility guarantee.
-
It defines four navigation states:
ENROUTE,REROUTING,STOPPED, andUNKNOWN, each represented by an integer constant. -
NavStateprovides information whether the user is actively navigating, rerouting, has stopped, or if there is an error or the state is unspecified.
The state of navigation.
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
Constants
public static final int ENROUTE
Actively navigating. Information about the upcoming maneuver step is available.
public static final int REROUTING
Actively navigating but searching for a new route. The upcoming maneuver step is not yet available.
public static final int STOPPED
Navigation has ended.
public static final int UNKNOWN
Error or unspecified state.