0.0.1 • Published 9 years ago

com.groupe-sii.device-display-metrics v0.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
9 years ago

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