Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/tomloprod/cordova-plugin-appminimize

This is a cordova plugin to minimizes the application in android devices
https://github.com/tomloprod/cordova-plugin-appminimize

android cordova-plugin minimizes

Last synced: 18 days ago
JSON representation

This is a cordova plugin to minimizes the application in android devices

Awesome Lists containing this project

README

        

# cordova-plugin-appminimize [![License](https://img.shields.io/github/license/tomloprod/cordova-plugin-appminimize.svg)](http://www.opensource.org/licenses/mit-license.php)

**AppMinimize** is a cordova plugin to minimize the application in android devices

## Supported Platforms

- Android

## Installation

Cordova:

cordova plugin add cordova-plugin-appminimize

## Usage

This plugin exports an object with one method called "minimize":

```javascript
window.plugins.appMinimize.minimize();
```

## Ionic Example

In this example the application is minimized by pressing the back button

```javascript
$ionicPlatform.registerBackButtonAction(function (event) {
event.preventDefault();
window.plugins.appMinimize.minimize();
}, 100);
```

## Ionic Example

In this example the application is minimized by pressing the back button

```bash
ionic cordova plugin add cordova-plugin-appminimize
npm install --save @ionic-native/app-minimize
```

```typescript
import { AppMinimize } from '@ionic-native/app-minimize';

...

constructor(private appMinimize: AppMinimize) { }

...

this.platform.registerBackButtonAction(() => {
this.appMinimize.minimize();
});
```