WKUserNotificationInterfaceController.DidReceiveNotification 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.
Method that is called when a notification is received.
[Foundation.Export("didReceiveNotification:withCompletion:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.WatchOS, 5, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'DidReceiveNotification(UNNotification)' instead.")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 3, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void DidReceiveNotification (UserNotifications.UNNotification notification, Action<WatchKit.WKUserNotificationInterfaceType> completionHandler);
abstract member DidReceiveNotification : UserNotifications.UNNotification * Action<WatchKit.WKUserNotificationInterfaceType> -> unit
override this.DidReceiveNotification : UserNotifications.UNNotification * Action<WatchKit.WKUserNotificationInterfaceType> -> unit
Parameters
- notification
- UNNotification
The notification that was received.
- completionHandler
- Action<WKUserNotificationInterfaceType>
A handler to run when the operation completes.
- Attributes