UNUserNotificationCenter.RequestAuthorization Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Requests notifcation authorization with the specified options, and processes the result of the request.
[Foundation.Export("requestAuthorizationWithOptions:completionHandler:")]
public virtual void RequestAuthorization (UserNotifications.UNAuthorizationOptions options, Action<bool,Foundation.NSError> completionHandler);
abstract member RequestAuthorization : UserNotifications.UNAuthorizationOptions * Action<bool, Foundation.NSError> -> unit
override this.RequestAuthorization : UserNotifications.UNAuthorizationOptions * Action<bool, Foundation.NSError> -> unit
Parameters
- options
- UNAuthorizationOptions
The options for the authorization request.
A task that takes a bool
success value and an error to process.
- Attributes