private void ReceiveUploadedUriPreHoneyComb(Intent intent) { Uri upload = intent.Data; mUriUploadCallback.OnReceiveValue(upload); mUriUploadCallback = null; }
private void ResetUriUploadCallback() { if (mUriUploadCallback != null) { mUriUploadCallback.OnReceiveValue(null); mUriUploadCallback = null; } }
private void ReceiveUploadedUriArray(Intent data) { Uri[] uploadedUris; try { uploadedUris = new Uri[] { Uri.Parse(data.DataString) }; } catch (System.Exception e) { uploadedUris = null; } mUriArrayUploadCallback.OnReceiveValue(uploadedUris); mUriArrayUploadCallback = null; }
private void ReceiveUploadedUri(Intent intent) { Uri uploadedFileUri; try { string uploadedUriFilePath = UriUtils.GetFilePathFromUri(instance, intent.Data); File upload = new File(uploadedUriFilePath); uploadedFileUri = Uri.FromFile(upload); } catch (System.Exception) { uploadedFileUri = null; } mUriUploadCallback.OnReceiveValue(uploadedFileUri); mUriUploadCallback = null; }
private void ChooseUriArrayToUpload(IValueCallBack <Uri[]> uriArrayValueCallback) { ResetAllUploadCallbacks(); mUriArrayUploadCallback = uriArrayValueCallback; StartFileChooserActivity(); }