From: Jean Privat Date: Wed, 3 Aug 2016 16:38:46 +0000 (-0400) Subject: Merge: app.nit: improve apps life-cycle X-Git-Url: http://nitlanguage.org Merge: app.nit: improve apps life-cycle Modify the _app.nit_ life-cycle callbacks to add `on_restart`, and to remove `on_start` and `on_destroy`. `on_restart` is called when the app goes comes back from a `on_stop`. `on_start` duplicated other callbacks (`on_create` and the new `on_restart`), plus it didn't have a direct equivalent in iOS. `on_destroy` also didn't have an iOS equivalent. These changes simplify the life-cycle and use only callbacks existing on both platforms. This PR also improves the documentation of the _app.nit_ life-cycle with a nice little graph and references to the platform specific triggers. Pull-Request: #2229 Reviewed-by: Ait younes Mehdi Adel --- f9e9728d691d57d1c43cc86c9d29721644c5dd5f