/// <summary>
        /// Handles the click event for the 'OK' button, rather than using a Listener
        /// </summary>
        private void OnOkClicked(object sender, EventArgs args)
        {
            var allPath =
                _adapter.
                Selected.
                Select(x => x.SdCardPath).
                ToArray();

            //linq
            var listStream = allPath.Select(IOUtil.ReadFileFromPath).Select(file => ImageSource.FromStream(() => new MemoryStream(file))).ToList();

            MediaSelected?.Invoke(this, new XViewEventArgs(nameof(MediaSelected), listStream));
            Finish();
        }
 public override void OnBackPressed()
 {
     MediaSelected?.Invoke(this, new XViewEventArgs(nameof(MediaSelected), null));
     base.OnBackPressed();
 }