Delegate DisplayQuestion
- Namespace
- LibVLCSharp.Shared
- Assembly
- LibVLCSharp.dll
Called when a question dialog needs to be displayed. You can interact with this dialog by calling PostAction() to post an answer or Dismiss() to cancel this dialog.
public delegate Task DisplayQuestion(Dialog dialog, string? title, string? text, DialogQuestionType type, string? cancelText, string? firstActionText, string? secondActionText, CancellationToken token)
Parameters
dialogDialogid used to interact with the dialog
titlestringtitle of the dialog
textstringtext of the dialog
typeDialogQuestionTypequestion type (or severity) of the dialog
cancelTextstringtext of the cancel button
firstActionTextstringtext of the first button, if NULL, don't display this button
secondActionTextstringtext of the second button, if NULL, don't display this button
tokenCancellationTokenUse token to cancel operation
Returns
- Task
- Called when a question dialog needs to be displayed. You can interact with this dialog by calling PostAction() to post an answer or Dismiss() to cancel this dialog.
Constructors
DisplayQuestion(object, nint)
public DisplayQuestion(object @object, nint method)
Parameters
Methods
BeginInvoke(Dialog, string?, string?, DialogQuestionType, string?, string?, string?, CancellationToken, AsyncCallback, object)
public virtual IAsyncResult BeginInvoke(Dialog dialog, string? title, string? text, DialogQuestionType type, string? cancelText, string? firstActionText, string? secondActionText, CancellationToken token, AsyncCallback callback, object @object)
Parameters
dialogDialogtitlestringtextstringtypeDialogQuestionTypecancelTextstringfirstActionTextstringsecondActionTextstringtokenCancellationTokencallbackAsyncCallbackobjectobject
Returns
EndInvoke(IAsyncResult)
public virtual Task EndInvoke(IAsyncResult result)
Parameters
resultIAsyncResult
Returns
Invoke(Dialog, string?, string?, DialogQuestionType, string?, string?, string?, CancellationToken)
public virtual Task Invoke(Dialog dialog, string? title, string? text, DialogQuestionType type, string? cancelText, string? firstActionText, string? secondActionText, CancellationToken token)
Parameters
dialogDialogtitlestringtextstringtypeDialogQuestionTypecancelTextstringfirstActionTextstringsecondActionTextstringtokenCancellationToken