kaios-types
    Preparing search index...

    Interface MozPowerManager

    power Provides access to the device's power management features.

    interface MozPowerManager {
        cpuSleepAllowed: boolean;
        keyLightEnabled: boolean;
        screenBrightness: number;
        screenEnabled: boolean;
        addWakeLockListener(aListener: MozWakeLockListener): void;
        factoryReset(reason?: FactoryResetReason): void;
        getWakeLockState(aTopic: string): string;
        powerOff(): void;
        reboot(): void;
        removeWakeLockListener(aListener: MozWakeLockListener): void;
    }
    Index

    Properties

    cpuSleepAllowed: boolean

    Whether the CPU is allowed to sleep.

    keyLightEnabled: boolean

    Whether the key light is enabled.

    screenBrightness: number

    The brightness of the screen.

    screenEnabled: boolean

    Whether the screen is enabled.

    Methods

    • Gets the state of a wake lock.

      Parameters

      • aTopic: string

        The wake lock topic.

      Returns string