XboxCallbacks - stingray.XboxCallbacks namespace reference - Stingray Lua API Reference

stingray.XboxCallbacks namespace reference

Description

Used to implement callbacks.

Functions

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.

Parameters

id :

integer

ID of the callback to remove.

Returns
This function does not return any values.