# SuggestionManager

# 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)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/car/app/suggestion/SuggestionManager "View this page in Java")

<br />

```
@RequiresCarApi(value = 5)
class SuggestionManager : 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 functions                              |
|-------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | `@`[MainThread](https://developer.android.com/reference/kotlin/androidx/annotation/MainThread) [updateSuggestions](https://developer.android.com/reference/kotlin/androidx/car/app/suggestion/SuggestionManager#updateSuggestions(java.util.List<androidx.car.app.suggestion.model.Suggestion>))`(suggestions: (`[Mutable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<`[Suggestion](https://developer.android.com/reference/kotlin/androidx/car/app/suggestion/model/Suggestion)`!>)` 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 functions

### updateSuggestions

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

```
@MainThread
fun updateSuggestions(suggestions: (Mutable)List<Suggestion!>): Unit
```

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                                                                                                                                                            |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------|
| `suggestions: (`[Mutable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<`[Suggestion](https://developer.android.com/reference/kotlin/androidx/car/app/suggestion/model/Suggestion)`!>` | to be sent to the host |

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