Badge


@CarProtocol
@ExperimentalCarApi
class Badge


Represents a badge that can be displayed as an overlay on top of an image.

A badge denotes some sort of call to action, notification, alert, etc. An example is badging of application icons in a launcher to add a number at the top right corner which denotes how many active notifications that application has.

Summary

Nested types

A builder of Badge.

Public functions

Boolean
equals(other: Any?)
CarColor?

Returns the dot background color.

CarIcon?

Returns the badge icon.

Boolean

Returns whether the badge has a dot.

Int
String

Public functions

equals

fun equals(other: Any?): Boolean

getBackgroundColor

Added in 1.4.0
fun getBackgroundColor(): CarColor?

Returns the dot background color.

getIcon

Added in 1.4.0
fun getIcon(): CarIcon?

Returns the badge icon.

See also
setIcon

hasDot

Added in 1.4.0
fun hasDot(): Boolean

Returns whether the badge has a dot.

See also
setHasDot

hashCode

fun hashCode(): Int

toString

fun toString(): String