Table of Contents

Delegate DisplayProgress

Namespace
LibVLCSharp.Shared
Assembly
LibVLCSharp.dll

Called when a progress dialog needs to be displayed. If cancellable cancelText is not NULL, you can cancel this dialog by calling libvlc_dialog_dismiss()

public delegate Task DisplayProgress(Dialog dialog, string? title, string? text, bool indeterminate, float position, string? cancelText, CancellationToken token)

Parameters

dialog Dialog

id used to interact with the dialog

title string

title of the dialog

text string

text of the dialog

indeterminate bool

true if the progress dialog is indeterminate

position float

initial position of the progress bar (between 0.0 and 1.0)

cancelText string

text of the cancel button, if NULL the dialog is not cancellable

token CancellationToken

Use token to cancel operation

Returns

Task
Called when a progress dialog needs to be displayed. If cancellable cancelText is not NULL, you can cancel this dialog by calling libvlc_dialog_dismiss()

Constructors

DisplayProgress(object, nint)

public DisplayProgress(object @object, nint method)

Parameters

object object
method nint

Methods

BeginInvoke(Dialog, string?, string?, bool, float, string?, CancellationToken, AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(Dialog dialog, string? title, string? text, bool indeterminate, float position, string? cancelText, CancellationToken token, AsyncCallback callback, object @object)

Parameters

dialog Dialog
title string
text string
indeterminate bool
position float
cancelText 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?, bool, float, string?, CancellationToken)

public virtual Task Invoke(Dialog dialog, string? title, string? text, bool indeterminate, float position, string? cancelText, CancellationToken token)

Parameters

dialog Dialog
title string
text string
indeterminate bool
position float
cancelText string
token CancellationToken

Returns

Task