Table of Contents

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

dialog Dialog

id used to interact with the dialog

title string

title of the dialog

text string

text of the dialog

defaultUsername string

user name that should be set on the user form

askStore bool

if true, ask the user if he wants to save the credentials

token CancellationToken

Use 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

object object
method nint

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

dialog Dialog
title string
text string
defaultUsername string
askStore bool
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?, string?, bool, CancellationToken)

public virtual Task Invoke(Dialog dialog, string? title, string? text, string? defaultUsername, bool askStore, CancellationToken token)

Parameters

dialog Dialog
title string
text string
defaultUsername string
askStore bool
token CancellationToken

Returns

Task