0.0.1 • Published 8 months ago
ionic-uptime-plugin v0.0.1
uptime
This plugin provides the system uptime in milliseconds since boot, allowing developers to track how long a device has been running. This can be particularly useful for monitoring, diagnostics, or adding uptime information within an application.
Install
npm install ionic-uptime-plugin
npx cap sync
Supported Platforms
* Android
* iOS
API
echo(...)
echo(options: { value: string; }) => Promise<{ value: string; }>
Param | Type |
---|---|
options | { value: string; } |
Returns: Promise<{ value: string; }>
getUptime(...)
getUptime(options: { includeDeepSleep: boolean; }) => Promise<{ uptime: number; }>
Param | Type |
---|---|
options | { includeDeepSleep: boolean; } |
Returns: Promise<{ uptime: number; }>
Author
This plugin is made with ❤️ by Sunil Mishra
License
This project is licensed under the MIT License - see the LICENSE.md file for details.
0.0.1
8 months ago