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 [2015/03/21 14:52] madlyr Added OnData |
built_in:app_events [2017/09/17 22:32] 5.48.46.31 [Table] |
||
---|---|---|---|
Line 3: | Line 3: | ||
They are | They are | ||
- | ^Function ^Called when ^ | + | ^ Function |
- | |OnStart()|application is created | | + | | OnStart() |
- | |OnMenu( name ) |user selects a menu item | | + | | OnMenu( name ) | user selects a menu item | |
- | |OnBack() |the back key is pressed but only if it follows app.EnableBackKey( false ); | | + | | OnBack() |
- | |OnPause()|application is paused. (eg. When user switches to home screen)| | + | | OnPause() |
- | |OnResume() |application is resumed. (eg. When user returns from home screen) | | + | | OnResume() |
- | |OnConfig() |configuration changes. (eg. When user rotates phone) | | + | | OnConfig() |
- | |OnAlarm() |an alarm previously set by app.SetAlarm() is triggered | | + | | OnAlarm() |
- | |OnData() |data sent by Android Intents | | + | | OnData() |
The code of the sample that is bundled with DroidScript is reproduced below without permission. Hope you don't mind, guys. | The code of the sample that is bundled with DroidScript is reproduced below without permission. Hope you don't mind, guys. |