Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
LibVLCSharp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Martin Finkel
LibVLCSharp
Commits
f63ed56d
Commit
f63ed56d
authored
Jan 14, 2019
by
Martin Finkel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Docs] Dialog
parent
a0ebf4da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
0 deletions
+47
-0
LibVLCSharp/Shared/Dialog.cs
LibVLCSharp/Shared/Dialog.cs
+47
-0
No files found.
LibVLCSharp/Shared/Dialog.cs
View file @
f63ed56d
...
...
@@ -111,6 +111,9 @@ namespace LibVLCSharp.Shared
internal
IntPtr
NativeReference
{
get
;
}
}
/// <summary>
/// Describes the question type by libvlc
/// </summary>
public
enum
DialogQuestionType
{
Normal
=
0
,
...
...
@@ -118,15 +121,59 @@ namespace LibVLCSharp.Shared
Critical
=
2
}
/// <summary>
/// Called when an error message needs to be displayed.
/// </summary>
/// <param name="title">title of the dialog </param>
/// <param name="text">text of the dialog </param>
public
delegate
Task
DisplayError
(
string
title
,
string
text
);
/// <summary>
/// Called when a login dialog needs to be displayed.
/// You can interact with this dialog by calling PostLogin() to post an answer or Dismiss() to cancel this dialog.
/// </summary>
/// <param name="dialog">id used to interact with the dialog </param>
/// <param name="title">title of the dialog </param>
/// <param name="text">text of the dialog </param>
/// <param name="defaultUsername">user name that should be set on the user form</param>
/// <param name="askStore">if true, ask the user if he wants to save the credentials</param>
/// <param name="token">Use token to cancel operation</param>
public
delegate
Task
DisplayLogin
(
Dialog
dialog
,
string
title
,
string
text
,
string
defaultUsername
,
bool
askStore
,
CancellationToken
token
);
/// <summary>
/// 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.
/// </summary>
/// <param name="dialog">id used to interact with the dialog</param>
/// <param name="title">title of the dialog</param>
/// <param name="text">text of the dialog</param>
/// <param name="type">question type (or severity) of the dialog</param>
/// <param name="cancelText">text of the cancel button</param>
/// <param name="firstActionText">text of the first button, if NULL, don't display this button</param>
/// <param name="secondActionText">text of the second button, if NULL, don't display this button</param>
/// <param name="token">Use token to cancel operation</param>
public
delegate
Task
DisplayQuestion
(
Dialog
dialog
,
string
title
,
string
text
,
DialogQuestionType
type
,
string
cancelText
,
string
firstActionText
,
string
secondActionText
,
CancellationToken
token
);
/// <summary>
/// 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()
/// </summary>
/// <param name="dialog">id used to interact with the dialog</param>
/// <param name="title">title of the dialog</param>
/// <param name="text">text of the dialog</param>
/// <param name="indeterminate">true if the progress dialog is indeterminate</param>
/// <param name="position">initial position of the progress bar (between 0.0 and 1.0)</param>
/// <param name="cancelText">text of the cancel button, if NULL the dialog is not cancellable</param>
/// <param name="token">Use token to cancel operation</param>
public
delegate
Task
DisplayProgress
(
Dialog
dialog
,
string
title
,
string
text
,
bool
indeterminate
,
float
position
,
string
cancelText
,
CancellationToken
token
);
/// <summary>
/// Called when a progress dialog needs to be updated.
/// </summary>
/// <param name="dialog">id of the dialog</param>
/// <param name="position">position of the progress bar (between 0.0 and 1.0)</param>
/// <param name="text">new text of the progress dialog </param>
public
delegate
Task
UpdateProgress
(
Dialog
dialog
,
float
position
,
string
text
);
[
UnmanagedFunctionPointer
(
CallingConvention
.
Cdecl
)]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment