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