Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/tomloprod/cordova-plugin-appminimize
- Owner: tomloprod
- License: mit
- Created: 2016-05-15T07:43:14.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-12-09T09:42:19.000Z (about 6 years ago)
- Last Synced: 2024-12-01T02:35:54.361Z (25 days ago)
- Topics: android, cordova-plugin, minimizes
- Language: Java
- Size: 8.79 KB
- Stars: 38
- Watchers: 6
- Forks: 19
- Open Issues: 1
-
Metadata Files:
- Readme: README.MD
- License: LICENSE.md
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();
});
```