Bearbeiten

Freigeben über


GKNotificationBanner.ShowAsync Method

Definition

Overloads

ShowAsync(String, String)

Shows a message for the specified time to the user, with a specified title.

ShowAsync(String, String, Double)

ShowAsync(String, String)

Shows a message for the specified time to the user, with a specified title.

public static System.Threading.Tasks.Task ShowAsync (string title, string message);
static member ShowAsync : string * string -> System.Threading.Tasks.Task

Parameters

title
String

Title for the message.This parameter can be .

message
String

Message to display.This parameter can be .

Returns

A task that represents the asynchronous Show operation

Remarks

The ShowAsync method is suitable to be used with C# async by returning control to the caller with a Task representing the operation.

Applies to

ShowAsync(String, String, Double)

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static System.Threading.Tasks.Task ShowAsync (string title, string message, double durationSeconds);
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 8, ObjCRuntime.PlatformArchitecture.All, null)]
public static System.Threading.Tasks.Task ShowAsync (string title, string message, double durationSeconds);
static member ShowAsync : string * string * double -> System.Threading.Tasks.Task

Parameters

title
String
message
String
durationSeconds
Double

Returns

Attributes

Applies to