Skip to content

Latest commit

 

History

History
59 lines (49 loc) · 1.56 KB

README.md

File metadata and controls

59 lines (49 loc) · 1.56 KB

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