## AppWakeLock API

### Props

- `isCapable` (boolean, optional, reactive)
  Does the browser support the Screen Wake Lock API? Always 'false' on the server and, on SSR/SSG, until hydration completes
- `isActive` (boolean, optional, reactive)
  Is a screen wake lock currently held? Becomes 'false' when the browser releases the lock on its own (page hidden, battery saver) and 'true' again once the plugin re-acquires it

### Methods

- `request(): Promise<void>`
  Keep the screen awake; the plugin re-acquires the lock whenever the browser drops it (page hidden) until release() is called
  Returns: `Promise<void>`
    A Promise which is resolved when the wake lock is held. It gets rejected with 'Not capable' if the browser is not capable, and with the browser's DOMException (usually 'NotAllowedError': page hidden, battery saver, permissions policy) if the lock could not be acquired.
    Examples: `request().then(() => { ... }).catch(err => { ... })`
- `release(): Promise<void>`
  Let the screen turn off again
  Returns: `Promise<void>`
    A Promise which is resolved when the wake lock is released. It gets rejected with 'Not capable' if the browser is not capable.
    Examples: `release().then(() => { ... }).catch(err => { ... })`
- `toggle(): Promise<void>`
  Request or release the wake lock, depending on whether one is currently held
  Returns: `Promise<void>`
    A Promise which is resolved when the wake lock is acquired / released. It gets rejected with 'Not capable' if the browser is not capable, and with the browser's DOMException if the lock could not be acquired.
    Examples: `toggle().then(() => { ... }).catch(err => { ... })`

### Vue Injection

Accessible via `$q.wakeLock` (e.g., `this.$q.wakeLock` in Options API or `useQuasar().wakeLock` in Composition API).

