Esempio n. 1
0
        public void Custom(string message, int?durationInSeconds = null, string backgroundColor = "black", string iconClassName = "home")
        {
            var toastMessage = new Models.NotyfNotification(ToastNotificationType.Custom, message, durationInSeconds);

            toastMessage.Icon            = iconClassName;
            toastMessage.BackgroundColor = backgroundColor;
            MessageContainer.Add(toastMessage);
        }
Esempio n. 2
0
        public void Warning(string message, int?durationInSeconds = null)
        {
            var toastMessage = new Models.NotyfNotification(ToastNotificationType.Warning, message, durationInSeconds);

            MessageContainer.Add(toastMessage);
        }