public final class

TypeBuilders.BoolProp.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.wear.protolayout.TypeBuilders.BoolProp.Builder

Overview

Builder for TypeBuilders.BoolProp

Summary

Constructors
publicBuilder()

Creates an instance of TypeBuilders.StringLayoutConstraint.Builder.

publicBuilder(boolean staticValue)

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

Methods
public TypeBuilders.BoolPropbuild()

Builds an instance from accumulated values.

public TypeBuilders.BoolProp.BuildersetDynamicValue(DynamicBuilders.DynamicBool dynamicValue)

Sets the dynamic value.

public TypeBuilders.BoolProp.BuildersetValue(boolean value)

Sets the static value.

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

Constructors

public Builder(boolean staticValue)

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

public Builder()

Deprecated: use TypeBuilders.BoolProp.Builder.Builder(boolean)

Creates an instance of TypeBuilders.StringLayoutConstraint.Builder.

Methods

public TypeBuilders.BoolProp.Builder setValue(boolean 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, false will be used instead.

public TypeBuilders.BoolProp.Builder setDynamicValue(DynamicBuilders.DynamicBool dynamicValue)

Sets 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 TypeBuilders.BoolProp build()

Builds an instance from accumulated values.