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
dialogDialogid used to interact with the dialog
titlestringtitle of the dialog
textstringtext of the dialog
indeterminatebooltrue if the progress dialog is indeterminate
positionfloatinitial position of the progress bar (between 0.0 and 1.0)
cancelTextstringtext of the cancel button, if NULL the dialog is not cancellable
tokenCancellationTokenUse 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
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
dialogDialogtitlestringtextstringindeterminateboolpositionfloatcancelTextstringtokenCancellationTokencallbackAsyncCallbackobjectobject
Returns
EndInvoke(IAsyncResult)
public virtual Task EndInvoke(IAsyncResult result)
Parameters
resultIAsyncResult
Returns
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
dialogDialogtitlestringtextstringindeterminateboolpositionfloatcancelTextstringtokenCancellationToken