void ShowShareTextMenu(string titleRes, String textToShare) { var shareIntent = DocumentSharingIntentHelper.GetShareTextIntent(textToShare); var sharingMenu = new SharingMenu(this, new SharingMenuListener(shareIntent)); sharingMenu.SetTitle(titleRes); sharingMenu.SetShareIntents(new List <Intent> (1) { shareIntent }); collaborateMenu.Dismiss(); sharingMenu.Show(); }
void ShowOpenInBrowserMenu() { var shareIntent = new Intent(Intent.ActionView, Android.Net.Uri.Parse(documentInfo.Url)); var sharingMenu = new SharingMenu(this, new SharingMenuListener(shareIntent)); sharingMenu.SetTitle("Open in Browser"); sharingMenu.SetShareIntents(new List <Intent> (1) { shareIntent }); collaborateMenu.Dismiss(); sharingMenu.Show(); }