AlarmApplicationManager AlarmApplicationManager AlarmApplicationManager AlarmApplicationManager Class

Definition

Requests permission from the user to set alarms, and retrieves the status of user permission for the app to set alarms.

public : static class AlarmApplicationManager
public static class AlarmApplicationManager
Public Static Class AlarmApplicationManager
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows Desktop Extension SDK (introduced v10.0.10240.0)
API contract
Windows.ApplicationModel.Background.BackgroundAlarmApplicationContract (introduced v1)

Methods

GetAccessStatus() GetAccessStatus() GetAccessStatus() GetAccessStatus()

Retrieves the status of user permission for the app to set alarms.

public : static AlarmAccessStatus GetAccessStatus()
public static AlarmAccessStatus GetAccessStatus()
Public Static Function GetAccessStatus() As AlarmAccessStatus
var alarmAccessStatus = Windows.ApplicationModel.Background.AlarmApplicationManager.getAccessStatus();
Returns

Indicates whether the user has granted permission to set alarms.

RequestAccessAsync() RequestAccessAsync() RequestAccessAsync() RequestAccessAsync()

Requests permission from the user to set alarms.

public : static IAsyncOperation<AlarmAccessStatus> RequestAccessAsync()
public static IAsyncOperation<AlarmAccessStatus> RequestAccessAsync()
Public Static Function RequestAccessAsync() As IAsyncOperation( Of AlarmAccessStatus )
Windows.ApplicationModel.Background.AlarmApplicationManager.requestAccessAsync().done( /* Your success and error handlers */ );
Returns