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

TypeScript ionic-native.InAppBrowser类代码示例

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

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



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

示例1:

 this.local.get(OPTIONS_KEY_NAME).then((res) => {
   let options = JSON.parse(res) || {};
   if (options.useInAppBrowser) {
     InAppBrowser.open(UUID_URL + item.occurrenceID, "_blank", INAPPBROWSER_OPTIONS);
   }
   else {
     InAppBrowser.open(UUID_URL + item.occurrenceID, "_system");
   }
 });
开发者ID:dstreicher,项目名称:bmnh-specimen-label-scanner,代码行数:9,代码来源:history.ts


示例2: openPage

  openPage(page) {
    // Reset the content nav to have just this page
    // we wouldn't want the back button to show in this scenario

    console.log(this.nav);


    if(page === 'Ajustes'){
      this.nav.push(Ajustes,{
        "tit":'Ajustes',
        "section":'Ajustes',
        "translator":this.translator_object
      });

    }else if(page.idTypeItem === 1011){
     if(this.platform.is('ios')){
        InAppBrowser.open('https://itunes.apple.com/in/app/incidencias-velez-malaga/id990970923?mt=8','_system','location=yes'); 
     }else if(this.platform.is('android')){
        InAppBrowser.open('https://play.google.com/store/apps/details?id=com.gecor.VelezMalaga','_system','location=yes'); 
     }
      
    }else if(page.idTypeItem === 1015){
    
    this.loading = Loading.create({content:''});
      this.nav.present(this.loading);
      setTimeout(() =>{
        this.nav.push(page.component,{
        "tit":this.translator_object[localStorage.getItem('lang')]['SELECCIONA_PLAYA'],
        "section":this.pages[0].section,
        "index":this.pages[0].idx,
        "estados": this.estados,
        "idTypeItem": page.idTypeItem,
        "translator":this.translator_object,
        "loading": this.loading,
        "typeItems" : this.typeItems
      });
      },100)
  
    }else{
     this.loading = Loading.create({content:''});
      this.nav.present(this.loading);
      setTimeout(() =>{
        this.nav.push(page.component,{
        "tit":page.title,
        "section":page.section,
        "index":page.idx,
        "estados": this.estados,
        "idTypeItem": page.idTypeItem,
        "translator":this.translator_object,
        "loading": this.loading,
        "typeItems" : this.typeItems
      });
      },100)
      
    }

  };
开发者ID:GECOR,项目名称:playas-velez,代码行数:57,代码来源:inicio.ts


示例3: Promise

	return new Promise(function(resolve, reject) {

	    /* Open the URL in app without header information (URL, back/forward buttons, etc.) */
	    let browserRef = InAppBrowser.open("https://mdash.cs.vassar.edu:443/oauth/authorize?response_type=token&client_id=vassarOMH&redirect_uri=https://mdash.cs.vassar.edu:443/&scope=write_data_points%20read_data_points", "_blank", "location=no");
	    
	    /* When the browser reloads, check the URL */
	    browserRef.addEventListener("loadstart", (event) => {
		
		/* If the URL starts this way, we can access the token */
		if ((event.url).indexOf("https://mdash.cs.vassar.edu/#") === 0) {
		    browserRef.removeEventListener("exit", (event) => {});
		    browserRef.close();

		    /* Token is located between "=" and "&" */
		    let token = (event.url).split("=")[1].split("&")[0];

		    if (token !== null) {
			/* Set the token for post requests */
			resolve (token);
		    }
		    else
			reject ("Yeah, that didn't work bud");
		}
	    });
	});
开发者ID:mdash-ursi2016,项目名称:ionic_code_typescript,代码行数:25,代码来源:httpservice.ts


示例4: launch

 launch(url) {
   console.log('call launch function');
   console.log(url, typeof(url));
   // this.platform.ready().then(() => {
   InAppBrowser.open(url, "_blank", "location=no,toolbar=no");
   // })
   // InAppBrowser.open('http://www.naver.com');
 }
开发者ID:draconian00,项目名称:testIonic,代码行数:8,代码来源:home.ts


示例5: openGitHubSourceUrl

 openGitHubSourceUrl(url) {
     var githuburl = "https://github.com/osser/ionic2-sample/tree/master/ionic2-basic-beta4/app/pages/" + url;
     console.log(githuburl);
     InAppBrowser.open(githuburl, "_blank");
 }
开发者ID:osser,项目名称:ionic2-sample,代码行数:5,代码来源:api-service.ts


示例6:

 handler: ()=> {
     let url = 'https://github.com/angular-ui/ui-router/wiki';
     InAppBrowser.open(url, '_blank');
 }
开发者ID:ralphowino,项目名称:ionic-native-kitchen-sink,代码行数:4,代码来源:home.ts


示例7: map

 map(lat,lon){
     InAppBrowser.open("geo:"+lat+","+lon, "_system", "");
 }
开发者ID:seedgabo,项目名称:Prestashop-Mobile,代码行数:3,代码来源:page3.ts


示例8: mail

 mail(mail){
     InAppBrowser.open("mailto:"+mail, "_system", "");
 }
开发者ID:seedgabo,项目名称:Prestashop-Mobile,代码行数:3,代码来源:page3.ts


示例9: sms

 sms(number){
     InAppBrowser.open("sms:"+number, "_system", "");
 }
开发者ID:seedgabo,项目名称:Prestashop-Mobile,代码行数:3,代码来源:page3.ts


示例10: call

 call(number){
     InAppBrowser.open("tel:"+number, "_system", "");
 }
开发者ID:seedgabo,项目名称:Prestashop-Mobile,代码行数:3,代码来源:page3.ts



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
TypeScript ionic-native.JPush类代码示例发布时间:2022-05-25
下一篇:
TypeScript ionic-native.ImagePicker类代码示例发布时间: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