Delegate DisplayLogin
- Namespace
- LibVLCSharp.Shared
- Assembly
- LibVLCSharp.dll
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.
public delegate Task DisplayLogin(Dialog dialog, string? title, string? text, string? defaultUsername, bool askStore, CancellationToken token)
Parameters
dialogDialogid used to interact with the dialog
titlestringtitle of the dialog
textstringtext of the dialog
defaultUsernamestringuser name that should be set on the user form
askStoreboolif true, ask the user if he wants to save the credentials
tokenCancellationTokenUse token to cancel operation
Returns
- Task
- 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.
Constructors
DisplayLogin(object, nint)
public DisplayLogin(object @object, nint method)
Parameters
Methods
BeginInvoke(Dialog, string?, string?, string?, bool, CancellationToken, AsyncCallback, object)
public virtual IAsyncResult BeginInvoke(Dialog dialog, string? title, string? text, string? defaultUsername, bool askStore, CancellationToken token, AsyncCallback callback, object @object)
Parameters
dialogDialogtitlestringtextstringdefaultUsernamestringaskStorebooltokenCancellationTokencallbackAsyncCallbackobjectobject
Returns
EndInvoke(IAsyncResult)
public virtual Task EndInvoke(IAsyncResult result)
Parameters
resultIAsyncResult
Returns
Invoke(Dialog, string?, string?, string?, bool, CancellationToken)
public virtual Task Invoke(Dialog dialog, string? title, string? text, string? defaultUsername, bool askStore, CancellationToken token)