java.lang.Object

↳androidx.wear.protolayout.DimensionBuilders.DpProp

Overview

A type for linear dimensions, measured in dp.

Summary

Methods
public static DimensionBuilders.DpPropfromProto(DimensionProto.DpProp proto, Fingerprint fingerprint)

Creates a new wrapper instance from the proto.

public DynamicBuilders.DynamicFloatgetDynamicValue()

Gets the dynamic value, in dp.

public FingerprintgetFingerprint()

public floatgetValue()

Gets the static value, in dp.

public DimensionProto.ContainerDimensiontoContainerDimensionProto()

public DimensionProto.ExtensionDimensiontoExtensionDimensionProto()

public DimensionProto.ImageDimensiontoImageDimensionProto()

public DimensionProto.PivotDimensiontoPivotDimensionProto()

public DimensionProto.SpacerDimensiontoSpacerDimensionProto()

public java.lang.StringtoString()

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

Methods

public float getValue()

Gets 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.

public DynamicBuilders.DynamicFloat getDynamicValue()

Gets 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.

public Fingerprint getFingerprint()

public static DimensionBuilders.DpProp fromProto(DimensionProto.DpProp proto, Fingerprint fingerprint)

Creates a new wrapper instance from the proto.

public DimensionProto.ContainerDimension toContainerDimensionProto()

public DimensionProto.ImageDimension toImageDimensionProto()

public DimensionProto.SpacerDimension toSpacerDimensionProto()

public DimensionProto.ExtensionDimension toExtensionDimensionProto()

public DimensionProto.PivotDimension toPivotDimensionProto()

public java.lang.String toString()