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


TypeScript InAppBrowser.open方法代码示例

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


在下文中一共展示了InAppBrowser.open方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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

示例11:

this.platform.ready().then(() => {
      InAppBrowser.open(url, "_system", "location=true");
  });
开发者ID:tejit2004,项目名称:app,代码行数:3,代码来源:list.ts

示例12: launch

	launch() {
		console.info("Launch: ", this.repo.html_url);
		InAppBrowser.open(this.repo.html_url, "_blank", "location=no");
  }
开发者ID:mez,项目名称:ionic2-github-repo-fetch,代码行数:4,代码来源:github-repo.component.ts

示例13: goToPage

    goToPage() {

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

示例14: clickLinkHandler

 private clickLinkHandler(e): void {
   e.preventDefault();
   InAppBrowser.open(e.target.getAttribute('href'));
 }
开发者ID:Charl---,项目名称:ionic-wordpress-starter,代码行数:4,代码来源:article.ts

示例15: ngAfterViewInit

 ngAfterViewInit() {
   let url = 'http://sseramom.com/?device=mobile';
   InAppBrowser.open(url, "_blank", "location=no,toolbar=no");
 }
开发者ID:Bakers1607,项目名称:ionic-webapp,代码行数:4,代码来源:main.ts


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