The PhoneState component is able to detect phone state changes.
pst = app.CreatePhoneState(
types )
→ app object: PhoneState
The callback data depends on the type:
Methods
The following methods are available on the PhoneState object:
Batch(
properties )
GetType() → String: “PhoneState”
Start()
Stop()