当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript Splashscreen.hide方法代码示例

本文整理汇总了TypeScript中ionic-native.Splashscreen.hide方法的典型用法代码示例。如果您正苦于以下问题:TypeScript Splashscreen.hide方法的具体用法?TypeScript Splashscreen.hide怎么用?TypeScript Splashscreen.hide使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ionic-native.Splashscreen的用法示例。


在下文中一共展示了Splashscreen.hide方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: initializeIosApp

    initializeIosApp(){
      //this.confData.load();    
      this.rootPage = SlidePage;

      this.initializePush();

      Globalization.getPreferredLanguage().then((obj) =>{//get device language
        console.log(obj.value);
        this.initializeTranslateServiceConfig(obj.value.split('-')[0]);//initialize sending lowercase language      
      }, (err)=>{
        console.log(err); 
        this.initializeTranslateServiceConfig(defaultLanguage);//initialize sending lowercase language default       
      });

      Splashscreen.hide();

    }
开发者ID:GECOR,项目名称:gecor-generic-2016,代码行数:17,代码来源:app.component.ts

示例2: alert

 $timeout(function () {
     Splashscreen.hide();
     let push = Push.init({
         ios: {
             alert: "true",
             badge: true,
             sound: 'false'
         }
     });
     push.on('registration', (data) => {
         $http.post("http://192.168.200.169:3001/registrationIds", {registrationId: data.registrationId}).then(function () {
             alert("This device whose registrationId is: " + data.registrationId + " is now registered!");
         }, function (e) {
             alert(JSON.stringify(e));
         });
     });
     push.on('error', (e) => {
         alert(e.message);
     });
 }, 500);
开发者ID:mica16,项目名称:MyALD2,代码行数:20,代码来源:app.ts

示例3:

    platform.ready().then(() => {
      StatusBar.styleDefault();
      Splashscreen.hide();

      // 推送相关
      this.handleJPush();

      // 用户进入APP自动登陆
      AKStorage.load(AKStorage.CURRENT_USER).then(user => {
        // TODO 修改自动登录方式,token验证
        if (user && user.tel) this.userService.autoLogin(user.tel);
      });

      // 订阅用户登录的事件
      this.events.subscribe('user:login', (data) => {
        this.showLoginPage(data && data.length ? data[0] : data);
      });

      // 监听用户打开通知栏的操作
      this.registerOpenNotification();
    });
开发者ID:baijiadu,项目名称:auktionator,代码行数:21,代码来源:app.ts

示例4: resumeApplication

    /**
     * 
     */
    async function resumeApplication( redirectTo?: string, deviceReady: boolean = false ) {
        try {
            if ( !authenticationService.user.anonymous ) {
                await authenticationService.refreshAccessTokenIfNeeded();
            }

            pushService.init();

            if ( redirectTo ) {
                transitionService.changeRootState( redirectTo );
            }
        }
        catch ( error ) {
            if ( error.message !== 'no-token' ) {
                authenticationService.logout(() => transitionService.changeRootState( 'home' ) );
            } else if ( deviceReady ) {
                pushService.init();
                transitionService.changeRootState( 'home' );
            }
        }
        finally {
            Splashscreen.hide();
        }
    }
开发者ID:prodest,项目名称:es-na-palma-da-mao-mobile,代码行数:27,代码来源:authentication.run.ts

示例5:

 this.platform.ready().then(() => {
   // Okay, so the platform is ready and our plugins are available.
   // Here you can do any higher level native things you might need.
   //StatusBar.styleDefault();
   Splashscreen.hide();
 });
开发者ID:browsewire,项目名称:Samples,代码行数:6,代码来源:app.component.ts

示例6: if


//.........这里部分代码省略.........
                        CliNo = actions[action][field];
                      }
                      if(field == 'gItemID') {
                        gItemID = actions[action][field];
                      }
                      if(field == 'DSLNetwork') {
                        DSLNetwork = actions[action][field];
                      }
                      if(field == 'Supplier_ServiceID') {
                        Supplier_ServiceID = actions[action][field];
                      }
                      if(field == 'dslLineId') {
                        dslLineId = actions[action][field];
                      }
                    }
                  }
                }
              }
            })
          }

          //if user using app and push notification comes
          if (data.additionalData.foreground) {
              // if application open, show popup
              if(page == 'reset_data_port')
              {
                let confirmAlert = this.alertCtrl.create({
                    title: 'New Notification',
                    message: data.message,
                    buttons: ['OK']
                });
                confirmAlert.present();
              }
              else
              {
                let confirmAlert = this.alertCtrl.create({
                    title: 'New Notification',
                    message: data.message,
                    buttons: [{
                        text: 'Ignore',
                        role: 'cancel'
                    }, {
                        text: 'View',
                        handler: () => {
                            //TO DO: Your logic here
                            if(page == 'change_line_profile')
                            {
                              this.nav.push(ChangeLineProfilePage, {CliNo:CliNo, ServiceID:ServiceID});
                            }
                            else if(page == 'dslam_status')
                            {
                              this.nav.push(DslamStatusPage, {CliNo:CliNo, gItemID:gItemID, DSLNetwork:DSLNetwork, Supplier_ServiceID:Supplier_ServiceID, dslLineId:dslLineId});
                            }
                        }
                    }]
                });
                confirmAlert.present();
              }

          } else {
              //if user NOT using app and push notification comes
              //TO DO: Your logic on click of push notification directly
              //self.nav.push(SomeComponent, {message:data.message});
              console.log("Push notification clicked");
          }
      });
      push.on('error', (e) => {
          console.log(e.message);
      });*/



      StatusBar.styleDefault();
      Splashscreen.hide();
      //this.platform.registerBackButtonAction(function() { this.registerBackButtonListener(); });


      /*this.platform.registerBackButtonAction(() => {
        if (!this.nav.canGoBack()) {
          if(this.dialogOpened == false)
          {
            this.Logout('exit');
            return;
          }
        }
        else {
          this.nav.pop();
        }
      }, 501);*/


      /*document.addEventListener('backbutton', () => {
        if (!this.nav.canGoBack()) {
          this.Logout('exit');
        }
        else {
          this.nav.pop();
        }
      }, false);*/
    });
开发者ID:tejit2004,项目名称:app,代码行数:101,代码来源:app.ts

示例7:

 platform.ready().then(() => {
   StatusBar.styleDefault();
   Splashscreen.hide();
 //  this.nav.popToRoot();
   this.nav.push(TabsPage)
 });
开发者ID:RickyTaterSalad,项目名称:FireIonic2,代码行数:6,代码来源:app.ts

示例8: setTimeout

 setTimeout(() => Splashscreen.hide(), 100);
开发者ID:lefreire,项目名称:ionic,代码行数:1,代码来源:app.ts

示例9:

    platform.ready().then(() => {
Splashscreen.hide();


});
开发者ID:saurabhvyas,项目名称:Perfect-Todo,代码行数:5,代码来源:app.ts

示例10:

 this.platform.ready().then(async () => {
     Splashscreen.show();
     await Logger.setLebelByVersionNumber();
     this.rootPage = AcceptancePage.isAccepted() ? ReportsListPage : AcceptancePage;
     Splashscreen.hide();
 });
开发者ID:bacchus-diary,项目名称:Client,代码行数:6,代码来源:app.ts


注:本文中的ionic-native.Splashscreen.hide方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。