# SuggestionManager

Artifact: [androidx.car.app:app](https://developer.android.com/jetpack/androidx/releases/car-app) [View Source](https://cs.android.com/search?q=file:androidx/car/app/suggestion/SuggestionManager.java+class:androidx.car.app.suggestion.SuggestionManager) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.3.0)

*** ** * ** ***


```
@RequiresCarApi(value = 5)
public class SuggestionManager implements Manager
```

<br />

*** ** * ** ***

Manager for communicating Suggestions related events with the host.

Apps must use this interface to coordinate with the car system for suggestions resources.

## Summary

| ### Public methods |
|---|---|
| `void` | `@https://developer.android.com/reference/androidx/annotation/MainThread https://developer.android.com/reference/androidx/car/app/suggestion/SuggestionManager#updateSuggestions(java.util.List<androidx.car.app.suggestion.model.Suggestion>)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/car/app/suggestion/model/Suggestion> suggestions)` Sends the list of suggestions that an application wants to expose, in order for a user to take actions on the primary infotainment display usually in the center column of the vehicle. |

## Public methods

### updateSuggestions

Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/car-app#1.3.0)

```
@MainThread
public void updateSuggestions(@NonNull List<Suggestion> suggestions)
```

Sends the list of suggestions that an application wants to expose, in order for a user to take actions on the primary infotainment display usually in the center column of the vehicle.

| Parameters |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/car/app/suggestion/model/Suggestion> suggestions` | to be sent to the host |

| Throws |
|---|---|
| `https://developer.android.com/reference/androidx/car/app/HostException` | if the call is invoked by an app that is not declared as a navigation app in the manifest |
| `https://developer.android.com/reference/java/lang/IllegalArgumentException.html` | if any of the suggestions is not well formed |