restoring

abstract fun restoring(info: ModifierInfo, restore: () -> Unit)

Reads info, then invokes restore exactly once before returning, putting the component back where the departing declaration found it.

Read info's properties before invoking restore. An exception from restore propagates.

Parameters

info

the same identity supplied for the installed declaration.

restore

the restoration action to invoke exactly once before returning.