Installation
npm install --save @types/cordova-plugin-insomnia
Summary
This package contains type definitions for cordova-plugin-insomnia (https://github.com/EddyVerbruggen/Insomnia-PhoneGap-Plugin/).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cordova-plugin-insomnia.
index.d.ts
interface Window {
plugins: Plugins;
}
interface Plugins {
insomnia: InsomniaPlugin.Insomnia;
}
declare namespace InsomniaPlugin {
export interface Insomnia {
/**
* Prevent the screen of the mobile device from falling asleep.
*/
keepAwake(success?: () => any, fail?: () => any): void;
/**
* After making your app practically a zombie, you can allow it to sleep again by calling allowSleepAgain.
*/
allowSleepAgain(success?: () => any, fail?: () => any): void;
}
}
Additional Details
- Last updated: Mon, 06 Nov 2023 22:41:05 GMT
- Dependencies: none
Credits
These definitions were written by Markus Wagner.