GKNotificationBanner.ShowAsync 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.
Overloads
| Name | Description |
|---|---|
| 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.
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static System.Threading.Tasks.Task ShowAsync(string? title, string? message);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
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
- Attributes
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.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static System.Threading.Tasks.Task ShowAsync(string? title, string? message, double durationSeconds);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member ShowAsync : string * string * double -> System.Threading.Tasks.Task
Parameters
- title
- String
- message
- String
- durationSeconds
- Double
Returns
- Attributes