Skip to content

//reactivestate-core/com.ensody.reactivestate/OnReactiveStateAttached

OnReactiveStateAttached

[common]\ interface OnReactiveStateAttached

Implement this interface to get notified of every ReactiveState added to your object.

This can be useful e.g. to map ReactiveState.loading to a setLoading(isLoading: Boolean) method in every UI screen (e.g. on Android you could have a BaseFragment implementing this interface).

Functions

Name Summary
onReactiveStateAttached [common]
abstract fun onReactiveStateAttached(reactiveState: ReactiveState<out ErrorEvents>)