An open API service indexing awesome lists of open source software.

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

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