UNUserNotificationCenter.GetNotificationCategories 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 currently registered notification categories for the app, processing them before they are returned.
[Foundation.Export("getNotificationCategoriesWithCompletionHandler:")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void GetNotificationCategories (Action<Foundation.NSSet<UserNotifications.UNNotificationCategory>> completionHandler);
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