New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@capacitor-community/keep-awake

Package Overview
Dependencies
Maintainers
31
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@capacitor-community/keep-awake

Prevent your screen from getting some sleep!

  • 1.0.0-dev.057b74d.1618045916
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
18K
decreased by-8.14%
Maintainers
31
Weekly downloads
 
Created
Source


Keep Awake

@capacitor-community/keep-awake

Capacitor community plugin to prevent your screen from getting some sleep!


Maintainers

MaintainerGitHubSocial
Kevin Boostenboosten@Boostuh1
Robin Genzrobingenz@robin_genz

Installation

npm install @capacitor-community/keep-awake
npx cap sync

Configuration

No configuration required for this plugin.

Usage

import { KeepAwake } from '@capacitor-community/keep-awake';

const keepAwake = async () => {
    await KeepAwake.keepAwake();
}

const allowSleep = async () => {
    await KeepAwake.allowSleep();
}

API

keepAwake()

keepAwake() => Promise<void>

Prevent the device from dimming the screen.

Only available for Android and iOS.


allowSleep()

allowSleep() => Promise<void>

Allow the device to dim the screen.

Only available for Android and iOS.


Changelog

See CHANGELOG.md.

License

See LICENSE.

Keywords

FAQs

Package last updated on 10 Apr 2021

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc