Skip to content

2. Basic Markup & Assorted Information

Aric edited this page Jul 17, 2014 · 3 revisions

Markup

A DOMod Interface is the same as any other web technologies application. The only requirement is to link in the 'cordova.js' file in the header.


<!DOCTYPE html>
<html lang="en-US" >

<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="format-detection" content="telephone=no" />
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height">

<script type="text/javascript" src="file:///android_asset/www/cordova.js"></script>

</head>

<body>
</body>
</html>


Application Icons

Installed application icons are stored in DOMLaunchers data folder. To access for image elements or for CSS use, reference this path:

file:///data/data/com.awaa.domlauncher/icons/imageFileName.png

For more information refer to the Installed Apps Cordova plugin.


Cordova Plugin API success syntax

All DOMLauncher maintained Cordova plugins come with the standard success call. Success calls returns a JSON object with a single value with a key of 'returnVal'.

window.volumecontrols.up({stream:'ringer', success:function(returnVal){ //dosomething }});

window.volumecontrols.up({stream:'ringer', success:volUpSuccess});

function volUpSuccess(returnVal){ var getReturn = returnVal.returnVal }