Beispiel #1
0
 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');
   });
 }
 shareArticle(article?: Article) {
   SocialSharing.share(
     this.config.social.message,
     this.config.social.subject,
     this.article.picture,
     'http://www.google.com'
   );
 }
Beispiel #3
0
		.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');
		});
Beispiel #4
0
  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
    });

  }
Beispiel #5
0
	shareText() {
		this.fab.close();
		SocialSharing.share(
			nodeToStr(this.selectNode),
			this.familyTree.title,
			null
		);
		this.backService.touch();
		this.backService.trackAction('node', 'shareText');
	}
 facebookShare(socialMessage)
 {
   console.log("Compartiendo Facebook");
   SocialSharing.shareViaFacebook(socialMessage, null, null)
     .then(()=>{
       alert("Success");
     },
     ()=>{
        alert("failed")
     })
 }
Beispiel #7
0
	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');
	}
 tweeterShare(socialMessage){
   console.log("Compartiendo Tweeter");
   SocialSharing.shareViaTwitter(socialMessage, null, null)
     .then(()=>{
       alert("Success");
     },
     ()=>{
        alert("failed")
     })
   
 }
Beispiel #9
0
		.then((img: string) => {
			if (img) {
				SocialSharing.share(
					null,
					this.familyTree.title,
					img,
					null
				);
				this.backService.touch();
				this.backService.trackAction('node', 'shareImage');
			}
		});
Beispiel #10
0
 shareIt() {
   SocialSharing.share("我现在使用Growth,这是一款专注于Web开发者成长的应用,涵盖Web开发的流程及技术栈,Web开发的学习路线、成长衡量等各方面。快来下载吧!", "", "", "http://growth.ren/");
 }