Example #1
0
        void InitCollaborateMenu()
        {
            collaborateMenu = new SharingMenu(this, this);
            collaborateMenu.SetTitle("Collaborate");

            collaborateMenu.AddMenuItem(new FixedActionMenuItem(this, Resource.Id.open_in_browser, Resource.Drawable.ic_open_in_browser, "Open in Browser"));
            collaborateMenu.AddMenuItem(new FixedActionMenuItem(this, Resource.Id.share_document_link, Resource.Drawable.pspdf__ic_open_in, "Share Document Link"));
            collaborateMenu.AddMenuItem(new FixedActionMenuItem(this, Resource.Id.share_document_code, Resource.Drawable.pspdf__ic_open_in, $"Share Document Code: {documentInfo.EncodedDocumentId}"));

            collaborateMenu.AddActionMenuListener(this);
        }
Example #2
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 #3
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();
        }