public class

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

extends java.lang.Object

 java.lang.Object

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

Overview

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

Summary

Methods
public ConditionScopes.IfTrueScope<DynamicBuilders.DynamicType, java.lang.Object>use(java.lang.Object valueWhenTrue)

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

public ConditionScopes.IfTrueScope<DynamicBuilders.DynamicType, java.lang.Object>use(DynamicBuilders.DynamicType valueWhenTrue)

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

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

Methods

public ConditionScopes.IfTrueScope<DynamicBuilders.DynamicType, java.lang.Object> use(DynamicBuilders.DynamicType valueWhenTrue)

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

public ConditionScopes.IfTrueScope<DynamicBuilders.DynamicType, java.lang.Object> use(java.lang.Object valueWhenTrue)

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