cordova-plugin-appminimize

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

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
cordova-plugin-appminimize
3911.0.14 years ago6 years agoMinified + gzip package size for cordova-plugin-appminimize in KB

Readme

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": ```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();
}); ```