public final class

TypeBuilders.StringProp

extends java.lang.Object

 java.lang.Object

↳androidx.wear.protolayout.TypeBuilders.StringProp

Overview

A string type.

Summary

Methods
public static TypeBuilders.StringPropfromProto(TypesProto.StringProp proto, Fingerprint fingerprint)

Creates a new wrapper instance from the proto.

public DynamicBuilders.DynamicStringgetDynamicValue()

Gets the dynamic value.

public FingerprintgetFingerprint()

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

public java.lang.StringgetValue()

Gets the static value.

public TypesProto.StringProptoProto()

Returns the internal proto instance.

public java.lang.StringtoString()

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

Methods

public java.lang.String 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, null will be used instead.

public DynamicBuilders.DynamicString 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.StringProp fromProto(TypesProto.StringProp proto, Fingerprint fingerprint)

Creates a new wrapper instance from the proto.

public TypesProto.StringProp toProto()

Returns the internal proto instance.

public java.lang.String toString()