Language
Edit

IDialog.ShowAsync Method

Definition

An asynchronous operation that returns a DialogDismissedEventArgs that represents the result of the user's choice. The task will complete once the dialog dismissed, either by user action or by some other foreground action. If the user does not select an option, the Choice property will be null.

public System.Threading.Tasks.Task<MixedReality.Toolkit.UX.DialogDismissedEventArgs> ShowAsync();
abstract member ShowAsync : unit -> System.Threading.Tasks.Task<MixedReality.Toolkit.UX.DialogDismissedEventArgs>
Public Function ShowAsync () As Task(Of DialogDismissedEventArgs)

Returns

Remarks

This is usually implemented by a TaskCompletionSource listening on the the OnDismissed delegate. This allows for either synchronous or asynchronous usage of the IDialog.

Applies to