点击或拖拽改变大小

DisplayProgress 委托

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()

命名空间:  LibVLCSharp.Shared
程序集:  CPF.Vlc (在 CPF.Vlc.dll 中) 版本:0.8.8.5
语法
C#
public delegate Task DisplayProgress(
	Dialog dialog,
	string title,
	string text,
	bool indeterminate,
	float position,
	string cancelText,
	CancellationToken token
)

参数

dialog
类型:LibVLCSharp.SharedDialog
id used to interact with the dialog
title
类型:SystemString
title of the dialog
text
类型:SystemString
text of the dialog
indeterminate
类型:SystemBoolean
true if the progress dialog is indeterminate
position
类型:SystemSingle
initial position of the progress bar (between 0.0 and 1.0)
cancelText
类型:SystemString
text of the cancel button, if NULL the dialog is not cancellable
token
类型:System.ThreadingCancellationToken
Use token to cancel operation

返回值

类型:Task
参见