Skip to content

nayan-dabhi/cordova_plugin_screeninformation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Cordova Screen Information Plugin

This cordova plugin is usefull to get device screen information.

Installation

cordova plugin add https://github.com/nayan-dabhi/cordova_plugin_screeninformation

Supported Platforms

Platforms

Usage

ScreenInformation.getInformation(function(data){
  console.log(data);
}, function(){
  console.log("Unable to get device screen information....");
});

The plugin return a screen information JSON object.

Return values:

  • density_point - Number (screen density dpi point)
  • density_name - String (screen density dpi name)
  • width - Number (screen width in pixels)
  • height - Number (screen width in pixels)
  • xdpi - Number (pixels per inch of the screen in the X axis)
  • ydpi - Number (pixels per inch of the screen in the Y axis)

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published