UNUserNotificationCenter.GetNotificationCategoriesAsync 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.
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual System.Threading.Tasks.Task<Foundation.NSSet<UserNotifications.UNNotificationCategory>> GetNotificationCategoriesAsync ();
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