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](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/TurnByTurnManager#MSG_NAV_INFO) | Nav info sent fom Nav SDK in the form of a `https://developer.android.com/reference/android/os/Message.html` will have the message code set to this value in `https://developer.android.com/reference/android/os/Message.html#what`. |

### Public Constructor Summary

|---|---|
|   | [TurnByTurnManager](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/TurnByTurnManager#TurnByTurnManager())() |

### Public Method Summary

|---|---|
| static [TurnByTurnManager](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/TurnByTurnManager) | [createInstance](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/TurnByTurnManager#createInstance())() Create an instance of `https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/TurnByTurnManager`. |
| abstract [NavInfo](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/NavInfo) | [readNavInfoFromBundle](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/TurnByTurnManager#readNavInfoFromBundle(android.os.Bundle))(Bundle bundle) > [!WARNING] > [Preview](https://developers.google.com/maps/launch-stages#preview) feature Reads navigation data from a bundle into a `https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/NavInfo` object. |
| abstract Bundle | [writeNavInfoToBundle](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/TurnByTurnManager#writeNavInfoToBundle(com.google.android.libraries.mapsplatform.turnbyturn.model.NavInfo))([NavInfo](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/NavInfo) navInfo) > [!WARNING] > [Preview](https://developers.google.com/maps/launch-stages#preview) feature Writes navigation data into a bundle for interprocess communication. |

### Inherited Method Summary

From class java.lang.Object

|---|---|
| boolean | equals(Object arg0) |
| final Class\<?\> | getClass() |
| int | hashCode() |
| final void | notify() |
| final void | notifyAll() |
| String | toString() |
| final void | wait(long arg0, int arg1) |
| final void | wait(long arg0) |
| final void | wait() |

## Constants

#### public static final int
**MSG_NAV_INFO**

Nav info sent fom Nav SDK in the form of a `https://developer.android.com/reference/android/os/Message.html` will have the message code set to
this value in `https://developer.android.com/reference/android/os/Message.html#what`.
Constant Value: 7200

## Public Constructors

#### public
**TurnByTurnManager**
()

<br />

## Public Methods

#### public static [TurnByTurnManager](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/TurnByTurnManager)
**createInstance**
()

Create an instance of `https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/TurnByTurnManager`.

##### Returns

- a new `https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/TurnByTurnManager`.

#### public abstract [NavInfo](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/NavInfo)
**readNavInfoFromBundle**
(Bundle bundle)

<br />

> [!WARNING]
> [Preview](https://developers.google.com/maps/launch-stages#preview) feature

Reads navigation data from a bundle into a `https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/NavInfo` object. The data bundle can be
retrieved from a message using `https://developer.android.com/reference/android/os/Message.html#getData()`.

##### Parameters

| bundle | navigation information encoded in message data |
|---|---|

##### Returns

- a `https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/NavInfo` object containing navigation information read from the message data

#### public abstract Bundle
**writeNavInfoToBundle**
([NavInfo](https://developers.google.com/maps/documentation/navigation/android-sdk/reference/com/google/android/libraries/mapsplatform/turnbyturn/model/NavInfo) navInfo)

<br />

> [!WARNING]
> [Preview](https://developers.google.com/maps/launch-stages#preview) feature

Writes navigation data into a bundle for interprocess communication.

##### Parameters

| navInfo | the navigation information to be written |
|---|---|

##### Returns

- a `https://developer.android.com/reference/android/os/Bundle.html` containing the navigation information