共用方式為


GKNotificationBanner.Show 方法

定義

多載

Show(String, String, Action)
Show(String, String, Double, Action)

向使用者顯示指定時間的訊息,其中包含指定的標題。

Show(String, String, Action)

[Foundation.Export("showBannerWithTitle:message:completionHandler:")]
public static void Show (string title, string message, Action onCompleted);
static member Show : string * string * Action -> unit

參數

title
String

即將加入。

這個參數可以是 null

message
String

即將加入。

這個參數可以是 null

onCompleted
Action

即將加入。

這個參數可以是 null

屬性

適用於

Show(String, String, Double, Action)

向使用者顯示指定時間的訊息,其中包含指定的標題。

[Foundation.Export("showBannerWithTitle:message:duration:completionHandler:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static void Show (string title, string message, double durationSeconds, Action completionHandler);
[Foundation.Export("showBannerWithTitle:message:duration:completionHandler:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 8, ObjCRuntime.PlatformArchitecture.All, null)]
public static void Show (string title, string message, double durationSeconds, Action completionHandler);
static member Show : string * string * double * Action -> unit

參數

title
String

訊息的標題。

這個參數可以是 null

message
String

要顯示的訊息。

這個參數可以是 null

durationSeconds
Double

顯示 的時間。

completionHandler
Action

即將加入。

這個參數可以是 null

屬性

適用於