Tab

@CarProtocol
@RequiresCarApi(value = 6)
class Tab : Content


Represents a tab with a title and an image. Tab instances are used by TabTemplate to display tab headers.

Summary

Nested types

A builder of Tab.

Public functions

Boolean
equals(other: Any?)
String

Returns the content ID associated with the tab.

CarIcon

Returns the image to display in the tab

CarText

Returns the title of the tab.

Int
String

Public functions

equals

Added in 1.4.0-rc02
fun equals(other: Any?): Boolean

getContentId

Added in 1.4.0-rc02
fun getContentId(): String

Returns the content ID associated with the tab.

See also
setContentId

getIcon

Added in 1.3.0
fun getIcon(): CarIcon

Returns the image to display in the tab

See also
setIcon

getTitle

Added in 1.3.0
fun getTitle(): CarText

Returns the title of the tab.

See also
setTitle

hashCode

Added in 1.4.0-rc02
fun hashCode(): Int

toString

Added in 1.4.0-rc02
fun toString(): String