CommitScope

interface CommitScope

A CommitScope represents an object that executes some code and has a cleanup in the context of the Composition lifecycle. It has an "onDispose" operation to cleanup anything that it created whenever it leaves the composition.

Functions

equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
onDispose
Link copied to clipboard
common
abstract fun onDispose(callback: () -> Unit)
Provide a lambda which will be executed as this CommitScope leaves the composition.
toString
Link copied to clipboard
common
open fun toString(): String