UNUserNotificationCenter.GetNotificationSettings 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.
Returns the notification settings object for the app, processing it before it is returned.
[Foundation.Export("getNotificationSettingsWithCompletionHandler:")]
public virtual void GetNotificationSettings (Action<UserNotifications.UNNotificationSettings> completionHandler);
abstract member GetNotificationSettings : Action<UserNotifications.UNNotificationSettings> -> unit
override this.GetNotificationSettings : Action<UserNotifications.UNNotificationSettings> -> unit
Parameters
- completionHandler
- Action<UNNotificationSettings>
An action that takes a notification settings object and returns void
.
- Attributes