All Projects → capacitor-community → keep-awake

capacitor-community / keep-awake

Licence: MIT license
⚡️ Capacitor plugin to prevent devices from dimming or locking the screen.

Programming Languages

java
68154 projects - #9 most used programming language
typescript
32286 projects
swift
15916 projects
ruby
36898 projects - #4 most used programming language
objective c
16641 projects - #2 most used programming language
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to keep-awake

capacitor-background-task
⚡️ Capacitor plugin for running background tasks.
Stars: ✭ 27 (-60.87%)
Mutual labels:  capacitor, capacitor-plugin, capacitor-community
text-to-speech
⚡️ Capacitor plugin for synthesizing speech from text.
Stars: ✭ 50 (-27.54%)
Mutual labels:  capacitor, capacitor-plugin, capacitor-community
capacitor-android-dark-mode-support
⚡️ Capacitor plugin to support dark mode on Android.
Stars: ✭ 23 (-66.67%)
Mutual labels:  capacitor, capacitor-plugin, capacitor-community
capacitor-site
Capacitor website
Stars: ✭ 0 (-100%)
Mutual labels:  capacitor, capacitor-plugin
firebase-crashlytics
⚡️ Capacitor plugin for Firebase Crashlytics.
Stars: ✭ 63 (-8.7%)
Mutual labels:  capacitor, capacitor-community
capacitor-rate-app
Let users rate your app using native review app dialog for both Android and iOS.
Stars: ✭ 88 (+27.54%)
Mutual labels:  capacitor, capacitor-plugin
capacitor-filesharer
Capacitor plugin to download and share files for the Web, Android and iOS! Stop the war in Ukraine!
Stars: ✭ 55 (-20.29%)
Mutual labels:  capacitor, capacitor-plugin
capacitor-branch-deep-links
Capacitor plugin for branch.io deep links
Stars: ✭ 22 (-68.12%)
Mutual labels:  capacitor, capacitor-plugin
capacitor-vue-ionicv4-app
sample app using capacitor vuejs and ionicv4 components
Stars: ✭ 70 (+1.45%)
Mutual labels:  capacitor, capacitor-plugin
appcenter-sdk-capacitor
Capacitor Plugin for Microsoft's Visual Studio App Center SDK.
Stars: ✭ 22 (-68.12%)
Mutual labels:  capacitor, capacitor-plugin
capacitor-firebase-authentication
⚡️ Capacitor plugin for Firebase Authentication.
Stars: ✭ 67 (-2.9%)
Mutual labels:  capacitor, capacitor-plugin
app-icon
Capacitor plugin for managing an app's icon. The main feature being that you can programmatically change the app icon.
Stars: ✭ 28 (-59.42%)
Mutual labels:  capacitor, capacitor-plugin
XREngine
Immersive infrastructure for everyone. Everything you need to build and deploy scalable realtime 3D social apps and more. 🤖 🚀 👓 🚀 🕹️ 🚀 🧑🏿‍🚀
Stars: ✭ 423 (+513.04%)
Mutual labels:  capacitor, capacitor-plugin
http
Community plugin for native HTTP
Stars: ✭ 206 (+198.55%)
Mutual labels:  capacitor
blobile
Blases Loaded - Unofficial Live Blaseball Game Viewer for iOS, Android, and Web
Stars: ✭ 16 (-76.81%)
Mutual labels:  capacitor
cordova-plugin-apkupdater
This plugin allows your Android app to download and install compressed updates without the Google Play Store.
Stars: ✭ 46 (-33.33%)
Mutual labels:  capacitor
FhemNative
Cross Platform FHEM-HomeAutomation Frontend
Stars: ✭ 14 (-79.71%)
Mutual labels:  capacitor
tutorial-photo-gallery-vue
Photo Gallery Tutorial: Ionic Vue and Capacitor
Stars: ✭ 33 (-52.17%)
Mutual labels:  capacitor
Ionic Framework
A powerful cross-platform UI toolkit for building native-quality iOS, Android, and Progressive Web Apps with HTML, CSS, and JavaScript.
Stars: ✭ 45,802 (+66279.71%)
Mutual labels:  capacitor
Capacitor
Build cross-platform Native Progressive Web Apps for iOS, Android, and the Web ⚡️
Stars: ✭ 6,598 (+9462.32%)
Mutual labels:  capacitor


Keep Awake

@capacitor-community/keep-awake

⚡️ Capacitor plugin to prevent devices from dimming or locking the screen.


Maintainers

Maintainer GitHub Social
Kevin Boosten kevinboosten @kevinboosten
Robin Genz robingenz @robin_genz

Installation

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

Configuration

No configuration required for this plugin.

Demo

A working example can be found here: robingenz/capacitor-plugin-demo

Usage

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

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

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


const isSupported = async () => {
  const result = await KeepAwake.isSupported();
  return result.isSupported;
};

API

keepAwake()

keepAwake() => Promise<void>

Prevent the device from dimming the screen.


allowSleep()

allowSleep() => Promise<void>

Allow the device to dim the screen.


isSupported()

isSupported() => Promise<IsSupportedResult>

Whether keep awake is supported or not.

Returns: Promise<IsSupportedResult>


Interfaces

IsSupportedResult

Prop Type
isSupported boolean

Changelog

See CHANGELOG.md.

License

See LICENSE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].