0.0.1 • Published 10 years ago
com.groupe-sii.device-display-metrics v0.0.1
Cordova Plugin Device Display Metrics
Simple plugin that returns the device display metrics: dpi, etc.
Using
Create a new Cordova Project
$ cordova create hello com.example.helloapp HelloInstall the plugin
$ cd hello
$ cordova plugin add com.groupe-sii.device-display-metrics var success = function(metrics) {
alert(metrics);
}
var failure = function() {
alert("Error calling DeviceDisplayMetrics Plugin");
}
deviceMetrics.getDpi('', success, failure);Install iOS or Android platform
cordova platform add ios
cordova platform add androidRun the code
cordova run More Info
For more information on setting up Cordova see the documentation
For more info on plugins see the Plugin Development Guide
0.0.1
10 years ago