public final class

TypeBuilders.FloatProp

extends java.lang.Object

 java.lang.Object

↳androidx.wear.protolayout.TypeBuilders.FloatProp

Overview

A float type.

Summary

Methods
public static TypeBuilders.FloatPropfromProto(TypesProto.FloatProp proto, Fingerprint fingerprint)

Creates a new wrapper instance from the proto.

public DynamicBuilders.DynamicFloatgetDynamicValue()

Gets the dynamic value.

public FingerprintgetFingerprint()

Get the fingerprint for this object, or null if unknown.

public floatgetValue()

Gets the static value.

public TypesProto.FloatProptoProto()

Returns the internal proto instance.

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. 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. 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()

Get the fingerprint for this object, or null if unknown.

public static TypeBuilders.FloatProp fromProto(TypesProto.FloatProp proto, Fingerprint fingerprint)

Creates a new wrapper instance from the proto.

public TypesProto.FloatProp toProto()

Returns the internal proto instance.

public java.lang.String toString()