ViewValidator

class ViewValidator
kotlin.Any
   ↳ androidx.compose.ViewValidator

Summary

Public constructors

<init>(composer: Composer<*>)

Public methods

Boolean
changed(value: Int)

Boolean
changed(value: T)

Boolean
changedUnchecked(value: T)

operator Boolean

Boolean
set(value: Int, block: (value: Int) -> Unit)

Boolean
set(value: T, block: (value: T) -> Unit)

Boolean
setUnchecked(value: T, block: (value: T) -> Unit)

Boolean
update(value: Int, block: (value: Int) -> Unit)

Boolean
update(value: T, block: (value: T) -> Unit)

Boolean
updateUnchecked(value: T, block: (value: T) -> Unit)

Boolean
updated(value: Int)

Boolean
updated(value: T)

Properties

Composer<*>

Public constructors

<init>

ViewValidator(composer: Composer<*>)

Public methods

changed

fun changed(value: Int): Boolean

changed

fun <T> changed(value: T): Boolean

changedUnchecked

fun <T> changedUnchecked(value: T): Boolean

plus

operator fun Boolean.plus(other: Boolean): Boolean

set

inline fun set(
    value: Int,
    block: (value: Int) -> Unit
): Boolean

set

inline fun <reified T> set(
    value: T,
    block: (value: T) -> Unit
): Boolean

setUnchecked

inline fun <T> setUnchecked(
    value: T,
    block: (value: T) -> Unit
): Boolean

update

inline fun update(
    value: Int,
    block: (value: Int) -> Unit
): Boolean

update

inline fun <reified T> update(
    value: T,
    block: (value: T) -> Unit
): Boolean

updateUnchecked

inline fun <T> updateUnchecked(
    value: T,
    block: (value: T) -> Unit
): Boolean

updated

fun updated(value: Int): Boolean

updated

fun <T> updated(value: T): Boolean

Properties

composer

val composer: Composer<*>