cordova-plugin-appminimize

1.0.1 • Public • Published

cordova-plugin-appminimize License

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":

window.plugins.appMinimize.minimize();

Ionic Example

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

$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

ionic cordova plugin add cordova-plugin-appminimize
npm install --save @ionic-native/app-minimize
import { AppMinimize } from '@ionic-native/app-minimize';
 
...
 
constructor(private appMinimizeAppMinimize) { }
 
...
 
this.platform.registerBackButtonAction(() => {
    this.appMinimize.minimize();
});

Package Sidebar

Install

npm i cordova-plugin-appminimize

Weekly Downloads

1,640

Version

1.0.1

License

MIT

Unpacked Size

4.82 kB

Total Files

6

Last publish

Collaborators

  • tomloprod