Simple way to share a message or link on a social network in any Xamarin or Windows Project
- Available on NuGet: https://www.nuget.org/packages/Plugin.Share
- Install into your PCL project and Platform Specific projects
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
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);
Licensed under MIT license