onState

Syntax

onState(event)

Description

Fires when the state event is received.