private void Start_Service(object sender, EventArgs e) { var start = new StartForegroundService(); MessagingCenter.Send(start, "StartService"); startBtn.IsEnabled = false; }
public void SendMessage() { var send = new StartForegroundService(); MessagingCenter.Send(send, "Show Notification"); StartBtn.Text = "Remove Notification"; StartBtn.BackgroundColor = Color.Red; UpdateBtn.IsVisible = true; }
private void StartBtn_Clicked(object sender, EventArgs e) { //Navigation.PushAsync(new NotificationPage()); var message = new StartForegroundService(); MessagingCenter.Send(message, "StartRunningMessage"); StartBtn.IsEnabled = false; ////HandleRecievedMessage(); }