-
Notifications
You must be signed in to change notification settings - Fork 24
API: DOML
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.
@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.
window.doml.setDMD({name:'Tutorial', success:inCaseOfError});
To load up a new DOMod simply pass one of the names provided via the .getDMD() call.