次の方法で共有


UIApplication.RegisterUserNotificationSettings メソッド

定義

ユーザー通知の優先オプションを登録します。

[Foundation.Export("registerUserNotificationSettings:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'UNUserNotificationCenter.RequestAuthorization' and 'UNUserNotificationCenter.SetNotificationCategories' instead.")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void RegisterUserNotificationSettings (UIKit.UIUserNotificationSettings notificationSettings);
abstract member RegisterUserNotificationSettings : UIKit.UIUserNotificationSettings -> unit
override this.RegisterUserNotificationSettings : UIKit.UIUserNotificationSettings -> unit

パラメーター

notificationSettings
UIUserNotificationSettings

アプリで使用する通知の種類。

属性

注釈

必要に応じて、標準のプライバシー ダイアログが表示されます。 ユーザーが操作すると、 M:UIKit.UIApplicationDelegate.DidRegisterUserNotifications* が呼び出されます。

適用対象