https://github.com/tembra/capacitor-app-process
Gives information about app process and the possibility to kill it and relaunch the app
https://github.com/tembra/capacitor-app-process
Last synced: 6 days ago
JSON representation
Gives information about app process and the possibility to kill it and relaunch the app
- Host: GitHub
- URL: https://github.com/tembra/capacitor-app-process
- Owner: tembra
- License: mit
- Created: 2025-08-29T02:51:23.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-08-29T05:56:03.000Z (11 months ago)
- Last Synced: 2025-10-20T21:58:07.090Z (9 months ago)
- Language: Java
- Size: 198 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# capacitor-app-process
Gives information about app process and the possibility to kill it and relaunch the app
## Install
```bash
npm install capacitor-app-process
npx cap sync
```
## API
* [`getPid()`](#getpid)
* [`getPssMiB()`](#getpssmib)
* [`softKill(...)`](#softkill)
* [Interfaces](#interfaces)
### getPid()
```typescript
getPid() => Promise
```
**Returns:** Promise<PidResult>
--------------------
### getPssMiB()
```typescript
getPssMiB() => Promise
```
**Returns:** Promise<PssMiBResult>
--------------------
### softKill(...)
```typescript
softKill(options?: SoftKillOptions | undefined) => Promise
```
| Param | Type |
| ------------- | ----------------------------------------------------------- |
| **`options`** | SoftKillOptions |
--------------------
### Interfaces
#### PidResult
| Prop | Type |
| --------- | ------------------- |
| **`pid`** | number |
#### PssMiBResult
| Prop | Type |
| ------------ | ------------------- |
| **`pssMiB`** | number |
#### SoftKillOptions
| Prop | Type |
| -------------- | ----------------------------------------------------------------- |
| **`relaunch`** | boolean \| { cooldown?: number; waitTime?: number; } |