コード例 #1
0
 protected virtual void ShowWhatsAppShareComposer(WhatsAppShareComposer _composer)
 {
     if (!IsWhatsAppServiceAvailable())
     {
         WhatsAppShareFinished(WhatsAppShareFailedResponse());
         return;
     }
 }
コード例 #2
0
		protected virtual void ShowWhatsAppShareComposer (WhatsAppShareComposer _composer)
		{
			if (!IsWhatsAppServiceAvailable())
			{
				WhatsAppShareFinished(WhatsAppShareFailedResponse());
				return;
			}
		}
コード例 #3
0
		protected override void ShowWhatsAppShareComposer (WhatsAppShareComposer _composer)
		{
			base.ShowWhatsAppShareComposer (_composer);
			
			if (!IsWhatsAppServiceAvailable())
				return;
			
			byte[]	_imageData			= 	_composer.ImageData;
			int		_imageDataLength	= 	(_imageData == null) ? 0 : _imageData.Length;
			Plugin.Call(Native.Methods.SHARE_ON_WHATS_APP, _composer.Text, _imageData, _imageDataLength);
		}
コード例 #4
0
        protected override void ShowWhatsAppShareComposer(WhatsAppShareComposer _composer)
        {
            base.ShowWhatsAppShareComposer(_composer);

            if (!IsWhatsAppServiceAvailable())
            {
                return;
            }

            byte[] _imageData       = _composer.ImageData;
            int    _imageDataLength = (_imageData == null) ? 0 : _imageData.Length;

            Plugin.Call(Native.Methods.SHARE_ON_WHATS_APP, _composer.Text, _imageData, _imageDataLength);
        }
コード例 #5
0
		protected override void ShowWhatsAppShareComposer (WhatsAppShareComposer _composer)
		{
			base.ShowWhatsAppShareComposer (_composer);

			if (!IsWhatsAppServiceAvailable())
				return;

			byte[]	_imageData	= _composer.ImageData;

			if (_imageData != null)
				shareImageOnWhatsApp(_imageData, _imageData.Length);
			else
				shareTextMessageOnWhatsApp(_composer.Text);
		}
コード例 #6
0
        protected override void ShowWhatsAppShareComposer(WhatsAppShareComposer _composer)
        {
            base.ShowWhatsAppShareComposer(_composer);

            if (!IsWhatsAppServiceAvailable())
            {
                return;
            }

            byte[] _imageData = _composer.ImageData;

            if (_imageData != null)
            {
                shareImageOnWhatsApp(_imageData, _imageData.Length);
            }
            else
            {
                shareTextMessageOnWhatsApp(_composer.Text);
            }
        }
コード例 #7
0
		private void ShareImageOnWhatsApp ()
		{
			// Create composer
			WhatsAppShareComposer _composer	= new WhatsAppShareComposer();
			_composer.AttachImageAtPath(GetImageFullPath());
			
			// Show share view
			NPBinding.Sharing.ShowView(_composer, FinishedSharing);	
		}
コード例 #8
0
		private void ShareScreenshotOnWhatsApp ()
		{
			// Create composer
			WhatsAppShareComposer _composer	= new WhatsAppShareComposer();
			_composer.AttachScreenShot();
			
			// Show share view
			NPBinding.Sharing.ShowView(_composer, FinishedSharing);	
		}
コード例 #9
0
		private void ShareTextMessageOnWhatsApp ()
		{
			// Create composer
			WhatsAppShareComposer _composer	= new WhatsAppShareComposer();
			_composer.Text					= m_shareMessage;

			// Show share view
			NPBinding.Sharing.ShowView(_composer, FinishedSharing);			
		}