Skip to content

Simple way to share a message or link on a social network in your Xamarin.Forms projects.

License

Notifications You must be signed in to change notification settings

nielscup/SharePlugin

 
 

Repository files navigation

Share Plugin for Xamarin and Windows

Simple way to share a message or link on a social network in any Xamarin or Windows Project

Setup

Supports

  • Xamarin.iOS (Unified)
  • Xamarin.Android
  • Windows Phone 8/8.1 (Silverlight)
  • Windows Phone 8.1 RT
  • Windows Store 8.1 RT
  • Windows 10 UWP

API Usage

Call CrossShare.Current from any project or PCL to gain access to APIs.

Share

/// <summary>
/// Simply share text on compatible services
/// </summary>
/// <param name="text">Text to share</param>
/// <param name="title">Title of popup on share (not included in message)</param>
/// <returns>awaitable Task</returns>
Task Share(string text, string title = null);

Open Browser

/// <summary>
/// Open a browser to a specific url
/// </summary>
/// <param name="url">Url to open</param>
/// <returns>awaitable Task</returns>
Task OpenBrowser(string url);

Share Link

/// <summary>
/// Share a link url with compatible services
/// </summary>
/// <param name="url">Link to share</param>
/// <param name="message">Message to share</param>
/// <param name="title">Title of the popup</param>
/// <returns>awaitable Task</returns>
Task ShareLink(string url, string message = null, string title = null);

Maintaners

License

Licensed under MIT license

About

Simple way to share a message or link on a social network in your Xamarin.Forms projects.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%