Beispiel #1
0
        async void Notify_Clicked(object sender, EventArgs e)
        {
            String actionName = txtNotifyAction.Text;

            if (!String.IsNullOrEmpty(actionName))
            {
                var obj = new { action = actionName };

                await NotificationCenter.Notify(actionName, obj);

                txtLog.Text = txtLog.Text + $"\nNotify action {actionName}";
            }
            else
            {
                await DisplayAlert("Error", "Subscribe action name is null or empty. Please, provide an action name", "OK");
            }
        }
 public void Notify(Notification notification, NotificationParam param = null)
 {
     notificationCenter.Notify(notification, param);
 }
 private void TmOnTick(object sender, object o)
 {
     NotificationCenter.Notify("newMessage", ++_counter);
 }