private void AddActionButtons(bool mediaIsPlaying)
 {
     _builder.MActions.Clear();
     _builder.AddAction(GenerateActionCompat(Resource.Drawable.IcMediaPrevious, "Previous", MediaServiceBase.ActionPrevious));
     _builder.AddAction(mediaIsPlaying
         ? GenerateActionCompat(Resource.Drawable.IcMediaPause, "Pause", MediaServiceBase.ActionPause)
         : GenerateActionCompat(Resource.Drawable.IcMediaPlay, "Play", MediaServiceBase.ActionPlay));
     _builder.AddAction(GenerateActionCompat(Resource.Drawable.IcMediaNext, "Next", MediaServiceBase.ActionNext));
 }
        private void AddActionButtons(bool mediaIsPlaying)
        {
            _builder.MActions.Clear();
            _builder
            .AddAction(GenerateActionCompat(Resource.Drawable.ic_skip_previous, "Previous", MediaServiceBase.ActionPrevious))
            .AddAction(mediaIsPlaying
                    ? GenerateActionCompat(Resource.Drawable.ic_pause, "Pause", MediaServiceBase.ActionPause)
                    : GenerateActionCompat(Resource.Drawable.ic_play_arrow, "Play", MediaServiceBase.ActionPlay))
            .AddAction(GenerateActionCompat(Resource.Drawable.ic_skip_next, "Next", MediaServiceBase.ActionNext));

            //// Add previous/next button based on media queue
            //var canGoPrevious = MediaQueue?.HasPrevious() ?? false;
            //var canGoNext = MediaQueue?.HasNext() ?? false;

            //if (canGoPrevious)
            //{
            //    _builder.AddAction(GenerateActionCompat(Resource.Drawable.IcMediaPrevious, "Previous",
            //        MediaServiceBase.ActionPrevious));
            //}
            //_builder.AddAction(mediaIsPlaying
            //    ? GenerateActionCompat(Resource.Drawable.IcMediaPause, "Pause", MediaServiceBase.ActionPause)
            //    : GenerateActionCompat(Resource.Drawable.IcMediaPlay, "Play", MediaServiceBase.ActionPlay));
            //if (canGoNext)
            //{
            //    _builder.AddAction(GenerateActionCompat(Resource.Drawable.IcMediaNext, "Next",
            //        MediaServiceBase.ActionNext));
            //}
        }