AI-generated Key Takeaways
-
TurnByTurnManagermanages navigation data for interprocess communication, reading turn-by-turn information from the Nav SDK. -
It provides methods to read and write navigation data to and from a
Bundlefor easy data transfer. -
createInstance()allows the creation of aTurnByTurnManagerinstance. -
MSG_NAV_INFOis a constant representing the message code for navigation information sent from the Nav SDK. -
This class and its methods are in beta and subject to change.
Manages navigation data encoded in a bundle for interprocess communication. Reads turn-by-turn navigation information sent from Nav SDK.
Constant Summary
| int | MSG_NAV_INFO | Nav info sent fom Nav SDK in the form of a Message will have the message code set to
this value in Message.what. |
Public Constructor Summary
Public Method Summary
| static TurnByTurnManager |
createInstance()
Create an instance of
TurnByTurnManager. |
| abstract NavInfo |
readNavInfoFromBundle(Bundle bundle)
Reads navigation data from a bundle into a |
| abstract Bundle |
writeNavInfoToBundle(NavInfo navInfo)
Writes navigation data into a bundle for interprocess communication. |
Inherited Method Summary
Constants
public static final int MSG_NAV_INFO
Nav info sent fom Nav SDK in the form of a Message will have the message code set to
this value in Message.what.
Public Constructors
public TurnByTurnManager ()
Public Methods
public static TurnByTurnManager createInstance ()
Create an instance of TurnByTurnManager.
Returns
- a new
TurnByTurnManager.
public abstract NavInfo readNavInfoFromBundle (Bundle bundle)
Reads navigation data from a bundle into a NavInfo object. The data bundle can be
retrieved from a message using Message.getData().
Parameters
| bundle | navigation information encoded in message data |
|---|
Returns
- a
NavInfoobject containing navigation information read from the message data