@nextcloud/dialogs
    Preparing search index...

    Interface WakeLock

    The WakeLock interface of the Screen Wake Lock API can be used to request a lock that prevents device screens from dimming or locking when an application needs to keep running. Available only in secure contexts.

    MDN Reference

    interface WakeLock {
        request(type?: "screen"): Promise<WakeLockSentinel>;
    }
    Index

    Methods

    Methods

    • The request() method of the WakeLock interface returns a Promise that fulfills with a WakeLockSentinel object if the system screen wake lock is granted.

      MDN Reference

      Parameters

      • Optionaltype: "screen"

      Returns Promise<WakeLockSentinel>