Skip to content

Latest commit

 

History

History
31 lines (17 loc) · 901 Bytes

README.md

File metadata and controls

31 lines (17 loc) · 901 Bytes

tiapprestart Module

Description

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.

Accessing the tiapprestart Module

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.

Usage

tiapprestart.restartApp()

Author

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.

License

Appcelerator Titanium is Copyright (c) 2009-2010 by Appcelerator, Inc. and licensed under the Apache Public License (version 2).