protected virtual void ShowWhatsAppShareComposer(WhatsAppShareComposer _composer) { if (!IsWhatsAppServiceAvailable()) { WhatsAppShareFinished(WhatsAppShareFailedResponse()); return; } }
protected virtual void ShowWhatsAppShareComposer (WhatsAppShareComposer _composer) { if (!IsWhatsAppServiceAvailable()) { WhatsAppShareFinished(WhatsAppShareFailedResponse()); return; } }
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); }
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); }
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); }
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); } }
private void ShareImageOnWhatsApp () { // Create composer WhatsAppShareComposer _composer = new WhatsAppShareComposer(); _composer.AttachImageAtPath(GetImageFullPath()); // Show share view NPBinding.Sharing.ShowView(_composer, FinishedSharing); }
private void ShareScreenshotOnWhatsApp () { // Create composer WhatsAppShareComposer _composer = new WhatsAppShareComposer(); _composer.AttachScreenShot(); // Show share view NPBinding.Sharing.ShowView(_composer, FinishedSharing); }
private void ShareTextMessageOnWhatsApp () { // Create composer WhatsAppShareComposer _composer = new WhatsAppShareComposer(); _composer.Text = m_shareMessage; // Show share view NPBinding.Sharing.ShowView(_composer, FinishedSharing); }