com.groupe-sii.device-display-metrics
v0.0.1
Published
Cordova plugin device display metrics
Downloads
1
Readme
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 Hello
Install 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 android
Run 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