SuggestionManager
@RequiresCarApi(value = 5)
public class SuggestionManager implements 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 methods |
|
|---|---|
void |
@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 methods
updateSuggestions
@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 | |
|---|---|
@NonNull List<Suggestion> suggestions |
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 |