CallbackSaver

inline fun <T> CallbackSaver(delegate: Saver<T>, crossinline onSave: suspend (T?) -> Unit = {}, crossinline onRestore: suspend (T?) -> Unit = {}): Saver<T>

A Saver implementation that adds additional behavior to the given delegate's Saver.save and Saver.restore methods.

See also