hansemannn / tiapprestart

Titanium module to restart an iOs app.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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).

About

Titanium module to restart an iOs app.

License:Other


Languages

Language:Objective-C 65.9%Language:Python 29.7%Language:JavaScript 4.4%