public final class

TypeBuilders.FloatProp.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.wear.protolayout.TypeBuilders.FloatProp.Builder

Overview

Builder for TypeBuilders.FloatProp

Summary

Constructors
publicBuilder()

Creates an instance of TypeBuilders.StringLayoutConstraint.Builder.

publicBuilder(float staticValue)

Creates an instance of TypeBuilders.StringLayoutConstraint.Builder from the given static value.

Methods
public TypeBuilders.FloatPropbuild()

Builds an instance from accumulated values.

public TypeBuilders.FloatProp.BuildersetDynamicValue(DynamicBuilders.DynamicFloat dynamicValue)

Sets the dynamic value.

public TypeBuilders.FloatProp.BuildersetValue(float value)

Sets the static value.

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

Constructors

public Builder(float staticValue)

Creates an instance of TypeBuilders.StringLayoutConstraint.Builder from the given static value. TypeBuilders.FloatProp.Builder can be used to provide a dynamic value.

public Builder()

Deprecated: use TypeBuilders.FloatProp.Builder.Builder(float)

Creates an instance of TypeBuilders.StringLayoutConstraint.Builder.

Methods

public TypeBuilders.FloatProp.Builder setValue(float value)

Sets the static value. 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 will be used instead.

Sets the dynamic value. Note that when setting this value, the static value is still required to be set (with either TypeBuilders.FloatProp.Builder.Builder(float) or TypeBuilders.FloatProp.Builder.setValue(float)) 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 TypeBuilders.FloatProp build()

Builds an instance from accumulated values.