public final class

ColorBuilders.ColorStop.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.wear.protolayout.ColorBuilders.ColorStop.Builder

Overview

Builder for ColorBuilders.ColorStop

Summary

Constructors
publicBuilder(ColorBuilders.ColorProp color, TypeBuilders.FloatProp offset)

Creates an instance of ColorBuilders.ColorProp.Builder.

Methods
public ColorBuilders.ColorStopbuild()

Builds an instance from accumulated values.

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

Constructors

public Builder(ColorBuilders.ColorProp color, TypeBuilders.FloatProp offset)

Creates an instance of ColorBuilders.ColorProp.Builder.

Parameters:

color: the color for this stop. Only opaque colors are supported. Any transparent colors will have their alpha component set to 0xFF (opaque). Note that this parameter only supports static values.
offset: the relative offset for this color, between 0 and 1. This determines where the color is positioned relative to a gradient space. Note that this parameter only supports static values.

Methods

Builds an instance from accumulated values.