onStateChanged

Called when a state transition event happens.

Parameters

source

The source of the event

event

The event