Share via


UNUserNotificationCenter.GetNotificationCategories Method

Definition

Returns the currently registered notification categories for the app, processing them before they are returned.

[Foundation.Export("getNotificationCategoriesWithCompletionHandler:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void GetNotificationCategories(Action<Foundation.NSSet<UserNotifications.UNNotificationCategory>> completionHandler);
[<Foundation.Export("getNotificationCategoriesWithCompletionHandler:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetNotificationCategories : Action<Foundation.NSSet<UserNotifications.UNNotificationCategory>> -> unit
override this.GetNotificationCategories : Action<Foundation.NSSet<UserNotifications.UNNotificationCategory>> -> unit

Parameters

completionHandler
Action<NSSet<UNNotificationCategory>>

An action that takes an array of the currently registered notification categories and returns void.

Attributes

Applies to