示例#1
0
 private void OnRadioStationError(object sender, RadioStationErrorEventArgs e)
 {
     Log.Error(TAG, $"{nameof(MainActivity)}::{nameof(OnRadioStationError)} {e.Exception.Message ?? "See debug log for full exception detail"}");
     Log.Debug(TAG, $"{nameof(MainActivity)}::{nameof(OnRadioStationError)} {e.Exception}");
     Crashes.TrackError(e.Exception);
     RunOnUiThread(() => Toast.MakeText(this, "The stream for WZXV - The Word is having \"issues\"... :(", ToastLength.Long).Show());
 }
示例#2
0
 void OnPlayerError(object sender, RadioStationErrorEventArgs e)
 {
     _mediaSession.SetPlaybackState(PlaybackStateCompat.StateError);
     Stop();
     Error?.Invoke(this, e);
 }