How to use the @capacitor/core.Plugins.SplashScreen function in @capacitor/core

To help you get started, we’ve selected a few @capacitor/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ionic-team / capacitor / example / src / app / app.component.ts View on Github external
constructor(platform: Platform) {
    Plugins.SplashScreen.hide();
    /*
    Plugins.App.addListener('pluginError', (err: any, info: any) => {
      console.error('There was a serious error with a plugin', err, info);
    });
    */

    Plugins.App.addListener('appStateChange', (state: any) => {
      console.log('App state changed', state);
    });

    Plugins.App.addListener('appUrlOpen', (data: any) => {
      alert('APP URL OPEN: ' +  data.url);
    });

    Plugins.App.addListener('appRestoredResult', (data: any) => {
      alert('Got restored result');
github scriptPilot / app-framework / templates / main.js View on Github external
this.$f7ready(() => {
      Plugins.SplashScreen.hide().catch(() => {});
    });
  },