Skip to content
Aric edited this page Aug 11, 2014 · 3 revisions

The other plugins can be utilized in other projects, this plugin is just for DOMLauncher. It handles getting and setting of the loaded DOMod along with a simple call to restart the application if the need arises. Other DOMLauncher app specific features will be added here as time moves along and common needs are established.

DMD Swapping:

It is up to a DMD Developer to provide UI solution to switch between available DOMods. Not providing one is a quick way to quickly be uninstalled by a user.

Yes that sounds harsh. Here is the nice part! Getting and loading a DMD is very easy.

Get:

@callback - Array, ['Default', 'Tutorial', 'Some other name']
window.doml.getDMD({success:gottenDMD});

All this does is retrieve the current top level folder names of each DMD project residing within the DOMLauncher folder on the device and returns them as an array.

Set:

window.doml.setDMD({name:'Tutorial', success:inCaseOfError});

To load up a new DOMod simply pass one of the names provided via the .getDMD() call.

Clone this wiki locally