共用方式為


UIApplication.PresentLocalNotificationNow(UILocalNotification) 方法

定義

立即顯示本機通知。

[Foundation.Export("presentLocalNotificationNow:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.None, "Use 'UNUserNotificationCenter.AddNotificationRequest' instead.")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void PresentLocalNotificationNow (UIKit.UILocalNotification notification);
abstract member PresentLocalNotificationNow : UIKit.UILocalNotification -> unit
override this.PresentLocalNotificationNow : UIKit.UILocalNotification -> unit

參數

notification
UILocalNotification

作業系統立即為應用程式呈現的本機通知。

屬性

適用於