The module simulates an app restart, reinitialising the whole app. Useful for example when a change of language is needed from inside the app without rebuilding the whole UI.
To access this module from JavaScript, you would do the following:
var tiapprestart = require("info.rborn.tiapprestart");
The tiapprestart variable is a reference to the Module object.
tiapprestart.restartApp()
Daniel Tamas - http://dan-tamas.me.
I needed this in the AsturPlaya app.
The code is taken from the Titanium SDK and made a module to avoid hacking the SDK with each update.
Appcelerator Titanium is Copyright (c) 2009-2010 by Appcelerator, Inc. and licensed under the Apache Public License (version 2).