Share via


UNUserNotificationCenter.GetNotificationCategoriesAsync Method

Definition

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

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual System.Threading.Tasks.Task<Foundation.NSSet<UserNotifications.UNNotificationCategory>> GetNotificationCategoriesAsync();
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetNotificationCategoriesAsync : unit -> System.Threading.Tasks.Task<Foundation.NSSet<UserNotifications.UNNotificationCategory>>
override this.GetNotificationCategoriesAsync : unit -> System.Threading.Tasks.Task<Foundation.NSSet<UserNotifications.UNNotificationCategory>>

Returns

A task that returns the set of the currently registered notification categories for the app.

Attributes

Applies to