api.mobile.listenTo (...)

Introduction
Event listener that executes the specified callback function whenever a change on the state is detected
Parameters

callback function

Code samples