class MutableRemoteBoolean : RemoteBoolean, MutableRemoteState


A mutable implementation of RemoteBoolean.

Summary

Public companion functions

operator MutableRemoteBoolean

Creates a MutableRemoteBoolean with an initial value.

Public constructors

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.

RemoteBoolean

Equality operator for RemoteBooleans.

RemoteBoolean

Inequality operator for RemoteBooleans.

operator RemoteBoolean
not()

Logical NOT operator for RemoteBoolean.

infix RemoteBoolean
or(other: 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.

RemoteDp
select(ifTrue: RemoteDp, ifFalse: RemoteDp)

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

invoke

Added in 1.0.0-alpha21
@RememberInComposition
operator fun invoke(initialValue: Boolean): MutableRemoteBoolean

Creates a MutableRemoteBoolean with an initial value.

Parameters
initialValue: Boolean

The initial value for this mutable boolean.

Public constructors

MutableRemoteBoolean

Added in 1.0.0-alpha21
@RememberInComposition
MutableRemoteBoolean(initialValue: Boolean)

Public properties

constantValueOrNull

open val constantValueOrNull: Boolean?

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