public class

ConditionScopes.IfTrueScope<T extends DynamicBuilders.DynamicType, RawT>

extends java.lang.Object

 java.lang.Object

↳androidx.wear.protolayout.expression.ConditionScopes.IfTrueScope<T, RawT>

Overview

Condition scope to allow binding the true value in a onConditional expression, yielding a resulting Dynamic value.RawT is the native Java type that can be used when constructing a constant T (e.g. String for DynamicString).

Summary

Methods
public DynamicBuilders.DynamicTypeelseUse(java.lang.Object valueWhenFalse)

Sets the value to use as the value when false in a conditional expression.

public DynamicBuilders.DynamicTypeelseUse(DynamicBuilders.DynamicType valueWhenFalse)

Sets the value to use as the value when false in a conditional expression.

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

Methods

Sets the value to use as the value when false in a conditional expression.

public DynamicBuilders.DynamicType elseUse(java.lang.Object valueWhenFalse)

Sets the value to use as the value when false in a conditional expression.