Table of Contents

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

dialog Dialog

id used to interact with the dialog

title string

title of the dialog

text string

text of the dialog

type DialogQuestionType

question type (or severity) of the dialog

cancelText string

text of the cancel button

firstActionText string

text of the first button, if NULL, don't display this button

secondActionText string

text of the second button, if NULL, don't display this button

token CancellationToken

Use 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

object object
method nint

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

dialog Dialog
title string
text string
type DialogQuestionType
cancelText string
firstActionText string
secondActionText string
token CancellationToken
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(IAsyncResult)

public virtual Task EndInvoke(IAsyncResult result)

Parameters

result IAsyncResult

Returns

Task

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

dialog Dialog
title string
text string
type DialogQuestionType
cancelText string
firstActionText string
secondActionText string
token CancellationToken

Returns

Task