class MutableRemoteBoolean : RemoteBoolean, MutableRemoteState


A mutable implementation of RemoteBoolean.

Summary

Public companion functions

MutableRemoteBoolean
createMutable(initialValue: Boolean)

Creates a MutableRemoteBoolean with an initial value.

Public properties

open Boolean?

The constant value or null if there isn't one.

Inherited functions

From androidx.compose.remote.creation.compose.state.RemoteBoolean
infix RemoteBoolean

Logical AND operator for RemoteBooleans.

infix RemoteBoolean

Equality operator for RemoteBooleans.

infix RemoteBoolean

Inequality operator for RemoteBooleans.

operator RemoteBoolean
not()

Logical NOT operator for RemoteBoolean.

infix RemoteBoolean

Logical OR operator for RemoteBooleans.

RemoteBoolean
select(ifTrue: RemoteBoolean, ifFalse: RemoteBoolean)

If this RemoteBoolean evaluates to true then the returned value evaluates to ifTrue otherwise it evaluates to ifFalse.

RemoteColor
select(ifTrue: RemoteColor, ifFalse: RemoteColor)

If this RemoteBoolean evaluates to true then the returned value evaluates to ifTrue otherwise it evaluates to ifFalse.

RemoteFloat
select(ifTrue: RemoteFloat, ifFalse: RemoteFloat)

If this RemoteBoolean evaluates to true then the returned value evaluates to ifTrue otherwise it evaluates to ifFalse.

RemoteInt
select(ifTrue: RemoteInt, ifFalse: RemoteInt)

If this RemoteBoolean evaluates to true then the returned value evaluates to ifTrue otherwise it evaluates to ifFalse.

RemoteString
select(ifTrue: RemoteString, ifFalse: RemoteString)

If this RemoteBoolean evaluates to true then the returned value evaluates to ifTrue otherwise it evaluates to ifFalse.

RemoteInt

Converts this RemoteBoolean to its underlying RemoteInt representation, which evaluates to 1 for true and 0 for false.

infix RemoteBoolean

Logical XOR operator for RemoteBooleans.

Inherited properties

From androidx.compose.remote.creation.compose.state.RemoteState
open Boolean

The constant value held by this state.

open Boolean

Whether or not this remote state evaluates to a constant value.

Public companion functions

createMutable

Added in 1.0.0-alpha07
fun createMutable(initialValue: Boolean): MutableRemoteBoolean

Creates a MutableRemoteBoolean with an initial value.

Parameters
initialValue: Boolean

The initial value for this mutable boolean.

Public properties

constantValueOrNull

open val constantValueOrNullBoolean?

The constant value or null if there isn't one.