Edit

Share via


ToastButton.SetSnoozeActivation Method

Definition

Overloads

SetSnoozeActivation()

Configures the button to use system snooze activation when the button is clicked, using the default system snooze time.

SetSnoozeActivation(String)

Configures the button to use system snooze activation when the button is clicked, with a snooze time defined by the specified selection box.

SetSnoozeActivation()

Configures the button to use system snooze activation when the button is clicked, using the default system snooze time.

public Microsoft.Toolkit.Uwp.Notifications.ToastButton SetSnoozeActivation ();
member this.SetSnoozeActivation : unit -> Microsoft.Toolkit.Uwp.Notifications.ToastButton
Public Function SetSnoozeActivation () As ToastButton

Returns

The current instance of ToastButton

Applies to

SetSnoozeActivation(String)

Configures the button to use system snooze activation when the button is clicked, with a snooze time defined by the specified selection box.

public Microsoft.Toolkit.Uwp.Notifications.ToastButton SetSnoozeActivation (string selectionBoxId);
member this.SetSnoozeActivation : string -> Microsoft.Toolkit.Uwp.Notifications.ToastButton
Public Function SetSnoozeActivation (selectionBoxId As String) As ToastButton

Parameters

selectionBoxId
String

The ID of an existing ToastSelectionBox which allows the user to pick a custom snooze time. The ID's of the ToastSelectionBoxItems inside the selection box must represent the snooze interval in minutes. For example, if the user selects an item that has an ID of "120", then the notification will be snoozed for 2 hours. When the user clicks this button, if you specified a SelectionBoxId, the system will parse the ID of the selected item and snooze by that amount of minutes.

Returns

The current instance of ToastButton

Applies to