Languages

Menu
Sites
Language
Listening OS events

Hi,

I would like to know if is possible to listen events of OS such as BOOT, SET DATE or TIME, BATTERY STATE, ...

Is there any API (Native and/or Web) for this?

Can I register some listener similar to DOM HTML events: "window.addEventListener(<event>, <my_function_callback>, ...)"?

Thanks,

Werner

Responses

1 Replies
AVSukhov

Hello,

F.e. for Battery Status in Web you can use SystemInfo API:

Method addPropertyValueChangeListener with BATTERY property.