Skip to content

@capgo/capacitor-keep-awake

Capacitor Keep Awake Plugin for preventing the device screen from dimming/sleeping.

Capacitor Keep Awake Plugin for preventing the device screen from dimming/sleeping.

  • keepAwake - Prevent the device from dimming the screen.
  • allowSleep - Allow the device to dim the screen (disable keep awake).
  • isSupported - Check if the keep awake feature is supported on the current platform.
  • isKeptAwake - Check if the device is currently being kept awake.
MethodDescription
keepAwakePrevent the device from dimming the screen.
allowSleepAllow the device to dim the screen (disable keep awake).
isSupportedCheck if the keep awake feature is supported on the current platform.
isKeptAwakeCheck if the device is currently being kept awake.
getPluginVersionGet the native Capacitor plugin version.

This reference is synced from src/definitions.ts in capacitor-keep-awake.