Socket
Socket
Sign inDemoInstall

capacitor-socialshare

Package Overview
Dependencies
2
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    capacitor-socialshare

This plugins help to Share App in Social


Version published
Weekly downloads
2
decreased by-33.33%
Maintainers
1
Install size
1.35 MB
Created
Weekly downloads
 

Readme

Source

Capacitor SocialShare

Capacitor SocialShare is a native ShareActionProvider & SharingViewController implementation for IOS & Android. Now you can use this package as a Ionic Capacitor Plugin in your App.

Suported

  • Android
  • IOS
  • Electron

Installation

npm install --save capacitor-socialshare

Getting Start

import { Plugins } from '@capacitor/core';

import { ShareOption } from 'capacitor-socialshare'; // Import SocialShare Modules


// Assign Parameters

shareOption: ShareOption = {
    subject: 'YOUR SUBJECT', 

    body: 'YOUR MESSAGE BODY',

    url: 'YOUR APP/PLAY STORE URL'
}


// Use Plugin Method

Plugins.SocialShare.share(this.shareOption).then(
    (res) => { console.log(res.value)  },
    (err) => { console.log(err) }
);

Methods

NameParameterReturnDescrription
share(option: ShareOption)ShareOptionPromise<{value: boolean}>It will show Share Intent in Android & Share Action in IOS.

Interfaces

interface ShareOption {

  subject?: string;

  body?: string;

  url?: string;

}

Screenshot

AndroidIOS
Comming soonComming soon

Contributing

  • Star this repository
  • Open issue for feature requests

Roadmap

License:

Capacitor SocialShare is MIT licensed.

Keywords

FAQs

Last updated on 28 Jan 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc