-
Notifications
You must be signed in to change notification settings - Fork 25
2. Basic Markup & Assorted Information
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>
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.
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 }