Exemplo n.º 1
0
        private void StopRadio()
        {
            RadioService.SetPlayer(null, -1);
            StopService(_radioService);

            ResetButtons();
            HideNotification();
        }
Exemplo n.º 2
0
#pragma warning restore 612, 618

        private async Task StartRadioAsync(string url, MaterialButton button, string notification)
        {
            var player = new RadioPlayer(this, url);
            await player.StartAsync();

            RadioService.SetPlayer(player, button.Id);
            StartService(_radioService);

            button.Icon = GetPlayerIcon(false);
            ShowNotification(notification);
        }