Socket
Book a DemoInstallSign in
Socket

cordova-plugin-screen-uility

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-screen-uility

Cordova screen uility plugin that enable an application to disable the status bar, the on screen button (navigation button) thus allow the application to be in full screen mode and also set the display timeout to infinite.

0.0.0
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

cordova-plugin-screen-util

=========

A small library providing utility methods to disable the status bar of an application as well as the navigation button on the screen thus allowing the application to be in full screen mode. In addition, it provides the method to disable timeout for that particular application thus enable it to stay awake.

Constraint

  • The on screen navigation button will appear only if you swipe up at the bottom of the screen.
  • Support only android.

Installation

cordova plugin add cordova-plugin-screen-util

Usage

In the index.html include :

 <script src="ScreenUtil.js"></script>

below the cordova.js script.

//in cordova 

    document.addEventListener("deviceready", function () {
        setTimeout(function () {
            ScreenUtil.settings("FULL_SCREEN");
            ScreenUtil.settings("DISABLE_TIMEOUT");
        }, 500);
    }, false);
    
    
//in ionic

   angular.module('yourModule')
    .controller('yourController', function ($scope, $timeout) {

        angular.element(document).ready(function () {
            $timeout($scope.ScreenCalibrate, 500);//invoking the plugin in a timeout function
        });

        $scope.ScreenCalibrate = function () {
            ScreenUtil.settings("FULL_SCREEN");
            ScreenUtil.settings("DISABLE_TIMEOUT");
        };

    });

Release History

  • 0.0.0 Initial release

Keywords

ecosystem:cordova

FAQs

Package last updated on 04 Jan 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.