SuggestionManager
@RequiresCarApi(value = 5)
class SuggestionManager : Manager
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 |
@MainThreadSends 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
@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)List<Suggestion!> |
to be sent to the host |
| Throws | |
|---|---|
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 |
if any of the suggestions is not well formed |