UNUserNotificationCenterDelegate.OpenSettings 方法

定义

调用 以打开应用内通知设置。

[Foundation.Export("userNotificationCenter:openSettingsForNotification:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 14, ObjCRuntime.PlatformArchitecture.Arch64, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void OpenSettings (UserNotifications.UNUserNotificationCenter center, UserNotifications.UNNotification notification);
abstract member OpenSettings : UserNotifications.UNUserNotificationCenter * UserNotifications.UNNotification -> unit
override this.OpenSettings : UserNotifications.UNUserNotificationCenter * UserNotifications.UNNotification -> unit

参数

center
UNUserNotificationCenter

接收响应的通知中心。

notification
UNNotification

通知。

属性

适用于