Share via


UNUserNotificationCenter.GetNotificationSettings Method

Definition

Returns the notification settings object for the app, processing it before it is returned.

[Foundation.Export("getNotificationSettingsWithCompletionHandler:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void GetNotificationSettings(Action<UserNotifications.UNNotificationSettings> completionHandler);
[<Foundation.Export("getNotificationSettingsWithCompletionHandler:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
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

Applies to