//Back private void BackIcon_Click(object sender, EventArgs e) { try { if (ActivityName == "FullScreen") { Intent intent = new Intent(); ActivityContext.SetResult(Result.Ok, intent); ActivityContext.Finish(); } else if (ActivityName == "Main") { ReleaseVideo(); ActivityContext.Finish(); } } catch (Exception exception) { Console.WriteLine(exception); } }
//Back public void BackIcon_Click(object sender, EventArgs e) { try { if (ActivityName == "FullScreen") { Intent intent = new Intent(); ActivityContext.SetResult(Result.Ok, intent); ActivityContext.Finish(); } else if (ActivityName == "Viewer_Video") { ReleaseVideo(); ActivityContext.Finish(); } SetStopvideo(); } catch (Exception exception) { Crashes.TrackError(exception); } }
//Full Screen public void InitFullscreenDialog(string action = "Open") { try { if (ActivityName != "FullScreen" && action == "Open") { Intent intent = new Intent(ActivityContext, typeof(FullScreenVideoActivity)); intent.PutExtra("Downloaded", Download_icon.Tag.ToString()); ActivityContext.StartActivityForResult(intent, 2000); } else { Intent intent = new Intent(); ActivityContext.SetResult(Result.Ok, intent); ActivityContext.Finish(); } } catch (Exception exception) { Crashes.TrackError(exception); } }
//Full Screen public void InitFullscreenDialog(string action = "Open") { try { if (ActivityName == "FullScreen" || action != "Open") { Intent intent = new Intent(); ActivityContext.SetResult(Result.Ok, intent); ActivityContext.Finish(); } else { Intent intent = new Intent(ActivityContext, typeof(FullScreenVideoActivity)); FullScreenVideoActivity.SetVideoData(VideoData); intent.PutExtra("Downloaded", DownloadIcon.Tag.ToString()); ActivityContext.StartActivityForResult(intent, 2000); } } catch (Exception exception) { Console.WriteLine(exception); } }
//Full Screen public void InitFullscreenDialog(string action = "Open") { try { if (ActivityName != "FullScreen" && action == "Open") { Intent intent = new Intent(ActivityContext, typeof(FullScreenVideoActivity)); //intent.PutExtra("Downloaded", DownloadIcon?.Tag?.ToString()); intent.PutExtra("Type", "Movies"); ActivityContext.StartActivityForResult(intent, 2000); } else { Intent intent = new Intent(); ActivityContext.SetResult(Result.Ok, intent); ActivityContext.Finish(); } } catch (Exception exception) { Methods.DisplayReportResultTrack(exception); } }