BackgroundThreadStateHandler.StateChangeListener


public interface BackgroundThreadStateHandler.StateChangeListener<T extends Object>


An interface to handle changes to the state on the foreground thread.

Parameters
<T extends Object>

An immutable object representing the entire state. Must implement equals.

Summary

Public methods

abstract void
onStateChanged(T oldState, T newState)

The state has changed.

Public methods

onStateChanged

abstract void onStateChanged(T oldState, T newState)

The state has changed.

A typical usage of this method is to inform external listeners.

This method will be called on the foreground thread.

Parameters
T oldState

The old state.

T newState

The new state.