网易云

Ionic实战视频教程(跨平台): https://www.itying.com/goods-1067.html

Flutter实战视频教程(跨平台): https://www.itying.com/goods-1176.html

App Minimize

Contents

AppMinimize is a plugin to minimize the application on android devices

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

联系我们?

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic's experts offer official maintenance, support, and integration help.

Contact Us Today!

Ionic 最小化应用App Minimize插件的安装(Installation)

ionic cordova plugin add cordova-plugin-appminimize npm install @ionic-native/app-minimize
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More or Contact Us
ionic enterprise register --key=YOURPRODUCTKEY npm install @ionic-enterprise/app-minimize

Ionic 最小化应用App Minimize插件支持的平台(Supported Platforms)

  • Android

Ionic 最小化应用App Minimize插件的用法(Usage)

import { Platfrom } from '@ionic/angular';
import { AppMinimize } from '@ionic-native/app-minimize/ngx';


constructor(private platform: Platform, private appMinimize: AppMinimize) { }

...

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