• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

TypeScript ionic-native.Splashscreen类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: if

    this.storage.get('user').then((user) =>{
    if(user != "" && user != undefined){        
      this.user = JSON.parse(user.toString());
    }

    this.storage.get('firstRun').then((resp) => {
      if(this.user)
        this.rootPage = TabsPage;
      else if(resp != "" && user != undefined)
        this.rootPage = LoginPage;
      else
        this.rootPage = SlidePage;
    });
      
    Splashscreen.hide();

    Globalization.getPreferredLanguage().then((obj) =>{//get device language
      console.log(obj.value);
      this.initializeTranslateServiceConfig(obj.value.split('-')[0]);//initialize sending lowercase language
      this.storage.set('language', obj.value.split('-')[0]);      
    }, (err)=>{
      console.log(err); 
      this.initializeTranslateServiceConfig(defaultLanguage);//initialize sending lowercase language default 
      this.storage.set('language', defaultLanguage);      
    });    
    //this.initializeTranslateServiceConfig();                                                                
    },
开发者ID:GECOR,项目名称:gecor-generic-2016,代码行数:27,代码来源:app.ts


示例2:

 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.
   if (platform.is('cordova')) {
     StatusBar.styleDefault();
     Splashscreen.hide();
   }
 });
开发者ID:yk,项目名称:soggler,代码行数:8,代码来源:app.component.ts


示例3:

    this.platform.ready().then(() => {
      if (this.authService.getSession())
        this.nav.setRoot(HomePage);
      else
        this.nav.setRoot(LoginPage);

      // 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:eduardorost,项目名称:meutransporte,代码行数:11,代码来源:app.component.ts


示例4: if

    this.storage.get('auxiliar').then((auxiliar) =>{
    if(auxiliar != "" && auxiliar != undefined){        
      this.auxiliar = JSON.parse(auxiliar.toString());
    }

    this.storage.get('firstRun').then((resp) => {
      if(this.auxiliar)
        this.rootPage = TabsPage;
      else if(resp != "" && auxiliar != undefined)
        this.rootPage = LoginPage;
      else
        this.rootPage = LoginPage;
        //this.rootPage = SlidePage;
    });   
    Splashscreen.hide();                                                              
    },
开发者ID:GECOR,项目名称:MasCerca,代码行数:16,代码来源:app.ts


示例5: 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.ts


示例6: 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


示例7:

    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


示例8: 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


示例9: 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


示例10:

 this.platform.ready().then(() => {
   StatusBar.styleDefault();
   Splashscreen.hide();
 });
开发者ID:dekonunes,项目名称:ConneCT-App,代码行数:4,代码来源:app.component.ts



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
TypeScript ionic-native.StatusBar类代码示例发布时间:2022-05-25
下一篇:
TypeScript ionic-native.SpinnerDialog类代码示例发布时间:2022-05-25
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap