java.lang.Object

↳androidx.wear.protolayout.DimensionBuilders.DpProp.Builder

Overview

Builder for DimensionBuilders.DpProp.

Summary

Constructors
publicBuilder()

Creates an instance of DimensionBuilders.DpProp.Builder.

publicBuilder(float staticValue)

Creates an instance of DimensionBuilders.DpProp.Builder from the given static value.

Methods
public DimensionBuilders.DpPropbuild()

Builds an instance from accumulated values.

public DimensionBuilders.DpProp.BuildersetDynamicValue(DynamicBuilders.DynamicFloat dynamicValue)

Sets the dynamic value, in dp.

public DimensionBuilders.DpProp.BuildersetValue(float value)

Sets the static value, in dp.

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

Constructors

public Builder(float staticValue)

Creates an instance of DimensionBuilders.DpProp.Builder from the given static value. DimensionBuilders.DpProp.Builder can be used to provide a dynamic value.

public Builder()

Deprecated: use DimensionBuilders.DpProp.Builder.Builder(float)

Creates an instance of DimensionBuilders.DpProp.Builder.

Methods

public DimensionBuilders.DpProp.Builder setValue(float value)

Sets the static value, in dp. 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, in dp. 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.

Builds an instance from accumulated values.