TurnByTurnManager

public abstract class TurnByTurnManager extends Object

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 NavInfo object.
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.

Constant Value: 7200

Public Constructors

public TurnByTurnManager ()

Public Methods

public static TurnByTurnManager createInstance ()

Create an instance of TurnByTurnManager.

Returns

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().

THIS API IS A BETA RELEASE.
IT IS SUBJECT TO CHANGE AND BACKWARDS COMPATIBILITY IS NOT GUARANTEED

Parameters
bundle navigation information encoded in message data
Returns
  • a NavInfo object containing navigation information read from the message data

public abstract Bundle writeNavInfoToBundle (NavInfo navInfo)

Writes navigation data into a bundle for interprocess communication.

THIS API IS A BETA RELEASE.
IT IS SUBJECT TO CHANGE AND BACKWARDS COMPATIBILITY IS NOT GUARANTEED

Parameters
navInfo the navigation information to be written
Returns
  • a Bundle containing the navigation information