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