次の方法で共有


UNUserNotificationCenter.GetNotificationCategories メソッド

定義

アプリの現在登録されている通知カテゴリを返し、返される前に処理します。

[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

パラメーター

completionHandler
Action<NSSet<UNNotificationCategory>>

現在登録されている通知カテゴリの配列を受け取り、 を返す voidアクション。

属性

適用対象