capacitor-app-process
v0.0.2
Published
Gives information about app process and the possibility to kill it and relaunch the app
Readme
capacitor-app-process
Gives information about app process and the possibility to kill it and relaunch the app
Install
npm install capacitor-app-process
npx cap syncAPI
getPid()
getPid() => Promise<PidResult>Returns: Promise<PidResult>
getPssMiB()
getPssMiB() => Promise<PssMiBResult>Returns: Promise<PssMiBResult>
softKill(...)
softKill(options?: SoftKillOptions | undefined) => Promise<void>| Param | Type |
| ------------- | ----------------------------------------------------------- |
| options | SoftKillOptions |
Interfaces
PidResult
| Prop | Type |
| --------- | ------------------- |
| pid | number |
PssMiBResult
| Prop | Type |
| ------------ | ------------------- |
| pssMiB | number |
SoftKillOptions
| Prop | Type |
| -------------- | ----------------------------------------------------------------- |
| relaunch | boolean | { cooldown?: number; waitTime?: number; } |
