public interface

ColorProto.ColorPropOrBuilder

 androidx.wear.protolayout.proto.ColorProto.ColorPropOrBuilder

Subclasses:

ColorProto.ColorProp, ColorProto.ColorProp.Builder

Summary

Methods
public intgetArgb()

 The static color value, in ARGB format.

public DynamicProto.DynamicColorgetDynamicValue()

 The dynamic value.

public ColorProto.ColorProp.OptionalArgbCasegetOptionalArgbCase()

public booleanhasArgb()

 The static color value, in ARGB format.

public booleanhasDynamicValue()

 The dynamic value.

Methods

public boolean hasArgb()

 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 {@link Color#TRANSPARENT}) will be used instead.
 
uint32 argb = 1;

Returns:

Whether the argb field is set.

public int getArgb()

 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 {@link Color#TRANSPARENT}) will be used instead.
 
uint32 argb = 1;

Returns:

The argb.

public boolean hasDynamicValue()

 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 {@code dynamicValue} has an invalid result, the provided
 static value will be used instead.
 
.androidx.wear.protolayout.expression.proto.DynamicColor dynamic_value = 2;

Returns:

Whether the dynamicValue field is set.

public DynamicProto.DynamicColor getDynamicValue()

 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 {@code dynamicValue} has an invalid result, the provided
 static value will be used instead.
 
.androidx.wear.protolayout.expression.proto.DynamicColor dynamic_value = 2;

Returns:

The dynamicValue.

public ColorProto.ColorProp.OptionalArgbCase getOptionalArgbCase()