Is kill event for device shutdown or app shutdown?

Posted on
  • Kill event documentation says that "This event is called just before the device shuts down ..." but I'm seeing this event in my widget every time widget is stopped, for example if I enter launcher and then again if I enter Settings in launcher.

    Is this intended behavior?

  • It is: the launcher and Settings are just special apps, opening them is the same as calling load('launch.app.js') or load('setting.app.js').

  • I would see the kill event as notification that your app is about to be killed. It gives you the chance to write some state away for when it gets reloaded (if that is something you want to do).

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Is kill event for device shutdown or app shutdown?

Posted by Avatar for malaire @malaire

Actions