App State Change

API -

function appStateChange(string_stateName)
    log('app is switching to state: ' .. string_stateName);
end

return function()
    addEvent('appState', 'appStateChange'); --subscribe to appState changes
    keepAlive();
end

Events are asynchronous coroutines.

Last updated