當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript ionic-native.SocialSharing類代碼示例

本文整理匯總了TypeScript中ionic-native.SocialSharing的典型用法代碼示例。如果您正苦於以下問題:TypeScript SocialSharing類的具體用法?TypeScript SocialSharing怎麽用?TypeScript SocialSharing使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了SocialSharing類的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。

示例1: share

 share() {
   let message = 'I love playing Scripture Golf! You should download it too! #ScriptureGolf';
   SocialSharing.share(message, 'Scripture Golf', SG_IMAGE_URL, 'https://www.facebook.com/ldsscripturegolf/').then(() => {
     console.log('Shared');
   }).catch(() => {
     this.toastService.showToast('Cannot share at this time');
   });
 }
開發者ID:jbw91,項目名稱:scripture-golf,代碼行數:8,代碼來源:home.ts

示例2: shareArticle

 shareArticle(article?: Article) {
   SocialSharing.share(
     this.config.social.message,
     this.config.social.subject,
     this.article.picture,
     'http://www.google.com'
   );
 }
開發者ID:Charl---,項目名稱:ionic-wordpress-starter,代碼行數:8,代碼來源:article-share-button.ts

示例3:

		.then((data) => {
			SocialSharing.share(
				'老豆家譜',
				'老豆家譜',
				data,
				'http://a.app.qq.com/o/simple.jsp?pkgname=cn.oldbean.tree',
			);
			this.backService.touch();
			this.backService.trackAction('node', 'shareQr');
		});
開發者ID:xuender,項目名稱:family,代碼行數:10,代碼來源:tree-show.ts

示例4: share

  share() {
    console.log( this.selectedItem.title.rendered, this.selectedItem.link );

    SocialSharing.share( this.selectedItem.title.rendered, null, null, this.selectedItem.link ).then(() => {
      // Sharing via email is possible
    }).catch(() => {
      // Sharing via email is not possible
    });

  }
開發者ID:carminium,項目名稱:newtechrev,代碼行數:10,代碼來源:post-details.ts

示例5: shareText

	shareText() {
		this.fab.close();
		SocialSharing.share(
			nodeToStr(this.selectNode),
			this.familyTree.title,
			null
		);
		this.backService.touch();
		this.backService.trackAction('node', 'shareText');
	}
開發者ID:xuender,項目名稱:family,代碼行數:10,代碼來源:tree-show.ts

示例6: facebookShare

 facebookShare(socialMessage)
 {
   console.log("Compartiendo Facebook");
   SocialSharing.shareViaFacebook(socialMessage, null, null)
     .then(()=>{
       alert("Success");
     },
     ()=>{
        alert("failed")
     })
 }
開發者ID:SPL-201620,項目名稱:SocialBike,代碼行數:11,代碼來源:socialshare.service.ts

示例7: shareLink

	shareLink() {
		this.fab.close();
		SocialSharing.share(
			'老豆家譜',
			this.familyTree.title,
			null,
			'http://a.app.qq.com/o/simple.jsp?pkgname=cn.oldbean.tree',
		);
		this.backService.touch();
		this.backService.trackAction('node', 'shareLink');
	}
開發者ID:xuender,項目名稱:family,代碼行數:11,代碼來源:tree-show.ts

示例8: tweeterShare

 tweeterShare(socialMessage){
   console.log("Compartiendo Tweeter");
   SocialSharing.shareViaTwitter(socialMessage, null, null)
     .then(()=>{
       alert("Success");
     },
     ()=>{
        alert("failed")
     })
   
 }
開發者ID:SPL-201620,項目名稱:SocialBike,代碼行數:11,代碼來源:socialshare.service.ts

示例9: shareIt

 shareIt() {
   SocialSharing.share("我現在使用Growth,這是一款專注於Web開發者成長的應用,涵蓋Web開發的流程及技術棧,Web開發的學習路線、成長衡量等各方麵。快來下載吧!", "", "", "http://growth.ren/");
 }
開發者ID:TestSmirk,項目名稱:growth2,代碼行數:3,代碼來源:index.ts


注:本文中的ionic-native.SocialSharing類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。