public final class

LayoutElementBuilders.ColorFilter

extends java.lang.Object

 java.lang.Object

↳androidx.wear.tiles.LayoutElementBuilders.ColorFilter

Overview

Filtering parameters used for images. This can be used to apply a color tint to images.

Summary

Methods
public static LayoutElementBuilders.ColorFilterfromProto(LayoutElementProto.ColorFilter proto)

public ColorBuilders.ColorPropgetTint()

Gets the tint color to use.

public LayoutElementProto.ColorFiltertoProto()

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods

public ColorBuilders.ColorProp getTint()

Gets the tint color to use. If specified, the image will be tinted, using SRC_IN blending (that is, all color information will be stripped from the target image, and only the alpha channel will be blended with the requested color).

Note that only Android image resources can be tinted; Inline images will not be tinted, and this property will have no effect. Intended for testing purposes only.

public static LayoutElementBuilders.ColorFilter fromProto(LayoutElementProto.ColorFilter proto)

public LayoutElementProto.ColorFilter toProto()