Skip to content

Gives information about app process and the possibility to kill it and relaunch the app

License

Notifications You must be signed in to change notification settings

tembra/capacitor-app-process

Repository files navigation

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 sync

API

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; }

About

Gives information about app process and the possibility to kill it and relaunch the app

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published