Share via


AccessoryManager.SnoozeAlarm Method

Definition

Overloads

SnoozeAlarm(Guid)

Snoozes an alarm.

SnoozeAlarm(Guid, TimeSpan)

Snoozes an alarm for the given time span.

SnoozeAlarm(Guid)

Snoozes an alarm.

public:
 static void SnoozeAlarm(Platform::Guid alarmId);
/// [Windows.Foundation.Metadata.Overload("SnoozeAlarm")]
 static void SnoozeAlarm(winrt::guid const& alarmId);
[Windows.Foundation.Metadata.Overload("SnoozeAlarm")]
public static void SnoozeAlarm(Guid alarmId);
function snoozeAlarm(alarmId)
Public Shared Sub SnoozeAlarm (alarmId As Guid)

Parameters

alarmId
Guid

Platform::Guid

winrt::guid

The identifier of the alarm to snooze.

Attributes

Windows requirements

App capabilities
accessoryManager

Remarks

Calling this API requires that the ID_CAP_SMS and ID_CAP_SMS_COMPANION capabilities be specified in the application manifest.

See also

Applies to

SnoozeAlarm(Guid, TimeSpan)

Snoozes an alarm for the given time span.

public:
 static void SnoozeAlarm(Platform::Guid alarmId, TimeSpan timeSpan);
/// [Windows.Foundation.Metadata.Overload("SnoozeAlarmForSpecifiedTime")]
 static void SnoozeAlarm(winrt::guid const& alarmId, TimeSpan const& timeSpan);
[Windows.Foundation.Metadata.Overload("SnoozeAlarmForSpecifiedTime")]
public static void SnoozeAlarm(Guid alarmId, System.TimeSpan timeSpan);
function snoozeAlarm(alarmId, timeSpan)
Public Shared Sub SnoozeAlarm (alarmId As Guid, timeSpan As TimeSpan)

Parameters

alarmId
Guid

Platform::Guid

winrt::guid

The identifier of the alarm.

timeSpan
TimeSpan TimeSpan

The amount of time to snooze the alarm.

Attributes

Windows requirements

App capabilities
accessoryManager

Remarks

Calling this API requires that the ID_CAP_SMS and ID_CAP_SMS_COMPANION capabilities be specified in the application manifest.

See also

Applies to