CarIcon.Builder

public static final class CarIcon.Builder
extends Object

java.lang.Object
   ↳ androidx.car.app.model.CarIcon.Builder


A builder of CarIcon.

Summary

Public constructors

Builder(IconCompat icon)

Creates a CarIcon.Builder instance using the given IconCompat.

Builder(CarIcon carIcon)

Returns a CarIcon.Builder instance configured with the same data as the given CarIcon instance.

Public methods

CarIcon build()

Constructs the CarIcon defined by this builder.

CarIcon.Builder setTint(CarColor tint)

Sets the tint of the icon to the given CarColor.

Inherited methods

Public constructors

Builder

public Builder (IconCompat icon)

Creates a CarIcon.Builder instance using the given IconCompat.

The following types are supported:

IconCompat.TYPE_URI is only supported in templates that explicitly allow it. In those cases, the appropriate APIs will be documented to indicate this.

For IconCompat.TYPE_URI, the URI's scheme must be ContentResolver.SCHEME_C