public override void OnBackPressed() { try { VideoActionsController.SetStopvideo(); base.OnBackPressed(); } catch (Exception e) { Crashes.TrackError(e); } }
//Result protected override void OnActivityResult(int requestCode, Result resultCode, Intent data) { try { base.OnActivityResult(requestCode, resultCode, data); if (requestCode == 2000) { if (resultCode == Result.Ok) { VideoActionsController.RestartPlayAfterShrinkScreen(); } } } catch (Exception exception) { Crashes.TrackError(exception); } }
protected override void OnDestroy() { try { VideoActionsController.SetStopvideo(); ImageService.Instance.InvalidateMemoryCache(); if (_adView != null) { _adView.Destroy(); } base.OnDestroy(); } catch (Exception exception) { Crashes.TrackError(exception); } }