public final class

ColorBuilders.ColorProp

extends java.lang.Object

 java.lang.Object

↳androidx.wear.protolayout.ColorBuilders.ColorProp

Overview

A property defining a color.

Summary

Methods
public static ColorBuilders.ColorPropfromProto(ColorProto.ColorProp proto, Fingerprint fingerprint)

Creates a new wrapper instance from the proto.

public intgetArgb()

Gets the static color value, in ARGB format.

public DynamicBuilders.DynamicColorgetDynamicValue()

Gets the dynamic value.

public FingerprintgetFingerprint()

Get the fingerprint for this object, or null if unknown.

public ColorProto.ColorProptoProto()

Returns the internal proto instance.

public java.lang.StringtoString()

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

Methods

public int getArgb()

Gets the static color value, in ARGB format. If a dynamic value is also set and the renderer supports dynamic values for the corresponding field, this static value will be ignored. If the static value is not specified, zero (equivalent to ) will be used instead.

public DynamicBuilders.DynamicColor getDynamicValue()

Gets the dynamic value. Note that when setting this value, the static value is still required to be set to support older renderers that only read the static value. If dynamicValue has an invalid result, the provided static value will be used instead.

public Fingerprint getFingerprint()

Get the fingerprint for this object, or null if unknown.

public static ColorBuilders.ColorProp fromProto(ColorProto.ColorProp proto, Fingerprint fingerprint)

Creates a new wrapper instance from the proto.

public ColorProto.ColorProp toProto()

Returns the internal proto instance.

public java.lang.String toString()