Suggestion
@CarProtocol
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 |
|---|
class Suggestion.BuilderA builder of |
Public functions |
|
|---|---|
Boolean |
|
PendingIntent? |
Returns the |
CarIcon? |
getIcon()Returns a |
String |
Returns the identifier of the suggestion. |
CarText? |
Returns the subtitle of the suggestion or |
CarText |
getTitle()Returns the title of the suggestion. |
Int |
hashCode() |
String |
toString() |
Public functions
getAction
fun getAction(): PendingIntent?
Returns the PendingIntent of the suggestion.
| See also | |
|---|---|
setAction |
getIcon
fun getIcon(): CarIcon?
Returns a CarIcon to display with the suggestion or null if not set.
| See also | |
|---|---|
setIcon |
getIdentifier
fun getIdentifier(): String
Returns the identifier of the suggestion.
| See also | |
|---|---|
setIdentifier |
getSubtitle
fun getSubtitle(): CarText?
Returns the subtitle of the suggestion or null if not set.
| See also | |
|---|---|
setSubtitle |