示例#1
0
        private void ShareScreenShotOnSocialNetwork()
        {
            // Create share sheet
            SocialShareSheet _shareSheet = new SocialShareSheet();

            _shareSheet.Text = m_shareMessage;
            _shareSheet.AttachScreenShot();

            // Show composer
            NPBinding.UI.SetPopoverPointAtLastTouchPosition();
            NPBinding.Sharing.ShowView(_shareSheet, FinishedSharing);
        }
示例#2
0
    public void SocialShare()
    {
        // Create share sheet
        SocialShareSheet _shareSheet = new SocialShareSheet();

        _shareSheet.Text = m_shareMessage;

        // Add below line if you want to share URL
        _shareSheet.URL = m_shareURL;

        // Add below line if you want to share a screenshot
        _shareSheet.AttachScreenShot();


        // Show composer
        NPBinding.UI.SetPopoverPointAtLastTouchPosition(); // To show popover at last touch point on iOS. On Android, its ignored.
        NPBinding.Sharing.ShowView(_shareSheet, FinishedSharing);
    }
		private void ShareScreenShotOnSocialNetwork ()
		{
			// Create share sheet
			SocialShareSheet _shareSheet 	= new SocialShareSheet();	
			_shareSheet.Text				= m_shareMessage;
			_shareSheet.AttachScreenShot();

			// Show composer
			NPBinding.UI.SetPopoverPointAtLastTouchPosition();
			NPBinding.Sharing.ShowView(_shareSheet, FinishedSharing);
		}