Example #1
0
        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();
        }
Example #2
0
        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();
        }