Suggestion
@CarProtocol
public final class Suggestion
Suggestion that an application provide to an end user in order to be displayed by the host and allow then to interact with their application.
Examples When a user opens their navigation app, it can post a suggestion as for the next place to drive to rather than wait for the user to enter or search for it.Summary
Nested types |
|---|
public final class Suggestion.BuilderA builder of |
Public methods |
|
|---|---|
boolean |
|
@Nullable PendingIntent |
Returns the |
@Nullable CarIcon |
getIcon()Returns a |
@NonNull String |
Returns the identifier of the suggestion. |
@Nullable CarText |
Returns the subtitle of the suggestion or |
@NonNull CarText |
getTitle()Returns the title of the suggestion. |
int |
hashCode() |
@NonNull String |
toString() |
Public methods
getAction
public @Nullable PendingIntent getAction()
Returns the PendingIntent of the suggestion.
| See also | |
|---|---|
setAction |
getIcon
public @Nullable CarIcon getIcon()
Returns a CarIcon to display with the suggestion or null if not set.
| See also | |
|---|---|
setIcon |
getIdentifier
public @NonNull String getIdentifier()
Returns the identifier of the suggestion.
| See also | |
|---|---|
setIdentifier |
getSubtitle
public @Nullable CarText getSubtitle()
Returns the subtitle of the suggestion or null if not set.
| See also | |
|---|---|
setSubtitle |