コード例 #1
0
 /// <summary>
 /// Adds the button to the notification message.
 /// </summary>
 /// <param name="dismiss">The dismiss.</param>
 /// <param name="content">The content.</param>
 /// <param name="callback">The callback.</param>
 /// <returns>Returns the notification message builder.</returns>
 public static NotificationMessageBuilder WithButton(
     this NotificationMessageBuilder.DismissNotificationMessage dismiss,
     object content,
     Action <INotificationMessageButton> callback)
 {
     return(dismiss.Builder.WithButton(content, dismiss.Builder.DismissBefore(callback)));
 }
コード例 #2
0
        /// <summary>
        /// Withes the delay.
        /// </summary>
        /// <param name="dismiss">The dismiss.</param>
        /// <param name="delay">The delay.</param>
        /// <param name="callback">The callback.</param>
        /// <returns>Returns the notification message builder.</returns>
        public static NotificationMessageBuilder WithDelay(
            this NotificationMessageBuilder.DismissNotificationMessage dismiss,
            TimeSpan delay,
            Action <INotificationMessage> callback = null)
        {
            dismiss.Builder.Delay(delay, dismiss.Builder.DismissBefore(callback));

            return(dismiss.Builder);
        }
コード例 #3
0
        /// <summary>
        /// Dismisses the notification message after specified time.
        /// </summary>
        /// <param name="dismiss">The dismiss.</param>
        /// <param name="delayMilliseconds">The delay in milliseconds.</param>
        /// <param name="callback">The callback.</param>
        /// <returns>Returns the notification message builder.</returns>
        public static NotificationMessageBuilder WithDelay(
            this NotificationMessageBuilder.DismissNotificationMessage dismiss,
            int delayMilliseconds,
            Action <INotificationMessage> callback = null)
        {
            dismiss.Builder.Delay(delayMilliseconds, dismiss.Builder.DismissBefore(callback));

            return(dismiss.Builder);
        }