UNUserNotificationCenterDelegate.OpenSettings 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
调用 以打开应用内通知设置。
[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
通知。
- 属性