This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
built_in:app_events [2018/05/21 18:13] geez437 [OnConfig] |
built_in:app_events [2018/12/30 01:47] 114.125.41.56 [App Events] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== App Events ====== | ||
- | There are a few functions that are triggered when certain system events occur. | ||
- | They are | ||
- | ^ Function | ||
- | | OnStart() | ||
- | | OnMenu( name ) | user selects a menu item | | ||
- | | OnBack() | ||
- | | OnPause() | ||
- | | OnResume() | ||
- | | OnConfig() | ||
- | | OnAlarm() | ||
- | | OnData() | ||
- | |||
- | The code of the sample that is bundled with DroidScript is reproduced below without permission. Hope you don't mind, guys. | ||
<code javascript appEvents.js> | <code javascript appEvents.js> | ||
//Called when application is created. | //Called when application is created. |