public interface

ColorProto.ColorStopOrBuilder

 androidx.wear.protolayout.proto.ColorProto.ColorStopOrBuilder

Subclasses:

ColorProto.ColorStop, ColorProto.ColorStop.Builder

Summary

Methods
public ColorProto.ColorPropgetColor()

 The color for this stop.

public TypesProto.FloatPropgetOffset()

 The relative offset for this color, between 0 and 1.

public ColorProto.ColorStop.OptionalOffsetCasegetOptionalOffsetCase()

public booleanhasColor()

 The color for this stop.

public booleanhasOffset()

 The relative offset for this color, between 0 and 1.

Methods

public boolean hasColor()

 The color for this stop. Only opaque colors are supported. Any transparent
 colors will have their alpha component set to 0xFF (opaque).
 
.androidx.wear.protolayout.proto.ColorProp color = 1;

Returns:

Whether the color field is set.

public ColorProto.ColorProp getColor()

 The color for this stop. Only opaque colors are supported. Any transparent
 colors will have their alpha component set to 0xFF (opaque).
 
.androidx.wear.protolayout.proto.ColorProp color = 1;

Returns:

The color.

public boolean hasOffset()

 The relative offset for this color, between 0 and 1. This determines
 where the color is positioned relative to a gradient space.
 
.androidx.wear.protolayout.proto.FloatProp offset = 2;

Returns:

Whether the offset field is set.

public TypesProto.FloatProp getOffset()

 The relative offset for this color, between 0 and 1. This determines
 where the color is positioned relative to a gradient space.
 
.androidx.wear.protolayout.proto.FloatProp offset = 2;

Returns:

The offset.

public ColorProto.ColorStop.OptionalOffsetCase getOptionalOffsetCase()