static public void NewMessage() { MessageNotificationIcon.ShowNotification(true); Handheld.Vibrate(); isNewMessage = true; OnNewMessage.Invoke(); }
public void ShowInformation(string title, string message, MessageNotificationIcon icon) { var messageNotification = new MessageNotification(title, message, icon, TimeSpan.FromSeconds(4)); messageNotification.Close += MessageNotification_Close; Notifications.Add(messageNotification); IsVisible = true; }
public void DirectMessage(MessageObject message) { newMessage = message; MessageNotificationIcon.ShowNotification(true); Handheld.Vibrate(); isNewMessage = true; UpdateDisplayDelay(); }
public MessageNotification(string title, string message, MessageNotificationIcon icon, TimeSpan timeStayOpen) { Title = title; Message = message; Icon = icon; var timer = new DispatcherTimer {Interval = timeStayOpen}; timer.Tick += Timer_Tick; timer.Start(); }
public MessageNotification(string title, string message, MessageNotificationIcon icon, TimeSpan timeStayOpen) { Title = title; Message = message; Icon = icon; var timer = new DispatcherTimer { Interval = timeStayOpen }; timer.Tick += Timer_Tick; timer.Start(); }
static public void SeenMessage() { isNewMessage = false; MessageNotificationIcon.ShowNotification(false); }
private void Awake() { anim = GetComponent <Animator>(); instance = this; }