XboxCallbacks - stingray.XboxCallbacks namespace reference - Stingray Lua API Reference
Used to implement callbacks.
|
Registers a Lua callback function to be called when the app is suspending.
|
Parameters callback : | fun(nil:nil) | Lua function to be called when the app is suspending. The fun(...) notation indicates that this is a function that accepts parameters of the types shown to the left of the colon :, and that returns the types shown to the right of the colon.. |
Returns integer |
An ID that can be used to unregister the callback.
|
You should use this opportunity to save the app state so that you can
resume the application from this point.
|
Unregisters a callback that was registered with one of the register_*_callback functions.
|
Parameters id : | integer | ID of the callback to remove. |
Returns | This function does not return any values. |