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

A builder of Suggestion.

Public functions

Boolean
equals(other: Any?)
PendingIntent?

Returns the PendingIntent of the suggestion.

CarIcon?

Returns a CarIcon to display with the suggestion or null if not set.

String

Returns the identifier of the suggestion.

CarText?

Returns the subtitle of the suggestion or null if not set.

CarText

Returns the title of the suggestion.

Int
String

Public functions

equals

fun equals(other: Any?): Boolean

getAction

Added in 1.3.0
fun getAction(): PendingIntent?

Returns the PendingIntent of the suggestion.

See also
setAction

getIcon

Added in 1.3.0
fun getIcon(): CarIcon?

Returns a CarIcon to display with the suggestion or null if not set.

See also
setIcon

getIdentifier

Added in 1.3.0
fun getIdentifier(): String

Returns the identifier of the suggestion.

See also
setIdentifier

getSubtitle

Added in 1.3.0
fun getSubtitle(): CarText?

Returns the subtitle of the suggestion or null if not set.

See also
setSubtitle

getTitle

Added in 1.3.0
fun getTitle(): CarText

Returns the title of the suggestion.

See also
setTitle

hashCode

fun hashCode(): Int

toString

fun toString(): String