Example #1
0
        private void OpenBrowser_Clicked(object sender, EventArgs e)
        {
            var sharing = new Xamarin.Services.Sharing.SharingService();

            if (sharing.CanOpenUrl(browserText.Text))
            {
                sharing.OpenBrowser(browserText.Text);
            }
        }
Example #2
0
        private void Copy_Clicked(object sender, EventArgs e)
        {
            var sharing = new Xamarin.Services.Sharing.SharingService();

            if (sharing.SupportsClipboard)
            {
                sharing.SetClipboardText(clipboardText.Text);
            }
        }
Example #3
0
        private void Share_Clicked(object sender, EventArgs e)
        {
            var sharing = new Xamarin.Services.Sharing.SharingService();

            sharing.Share(new ShareMessage
            {
                Title = titleText.Text,
                Text  = bodyText.Text,
                Url   = urlText.Text
            });
        }