Skip to main content
Version: 21 Aug 2024

EventCallbacks

Event handler for MLWebView callbacks. This structure must be initialized by calling #MLWebViewEventCallbacksInit before use.

Public Methods

EventCallbacks Create

Create and return an initialized version of this struct. userDataPointer to user data to be used to reference the originating web view tab

public static EventCallbacks Create(
GCHandle gcHandle
)

Parameters

TypeNameDescription
GCHandlegcHandle

Returns: A new instance of this struct.


Public Attributes

OnBeforePopup

This callback is used to ask the application if is OK to load a URL.


public OnBeforePopupCallback OnBeforePopup;


OnBeforeResourceLoad

Called to notify when a resource will loadeded.


public OnBeforeResourceLoadCallback OnBeforeResourceLoad;


OnCertificateError

Called when there is any certificate error.


public OnCertificateErrorCallback OnCertificateError;


OnDestroy

Called when webview is destroyed.


public OnDestroyCallback OnDestroy;


OnKeyboardDismiss

Called when user deselects an input field and the keyboard should be dismissed.


public OnKeyboardDismissCallback OnKeyboardDismiss;


OnLoadEnd

Called to notify load completion.


public OnLoadEndCallback OnLoadEnd;


OnLoadError

Called if there was any error during loading. These errors could be due to connectivity, certificate errors etc.


public OnLoadErrorCallback OnLoadError;


OnPopupClosed

This callback is used to notify the application of a closing popup.


public OnPopupClosedCallback OnPopupClosed;


OnPopupOpened

This callback is used to notify application that popup is opened.


public OnPopupOpenedCallback OnPopupOpened;


OnServiceConnected

This callback is used to pass notify user of service connection.


public OnServiceConnectedCallback OnServiceConnected;


OnServiceDisconnected

This callback is used to notify user that service is disconnect.


public OnServiceDisconnectedCallback OnServiceDisconnected;


OnServiceFailed

This callback is used to notify user that service failed to connect.


public OnServiceFailedCallback OnServiceFailed;


OnShowKeyboard

Called when user selects an input field.


public OnShowKeyboardCallback OnShowKeyboard;


UserData

User data passed to every callback.


public IntPtr UserData;


Version

Version of this struct


public uint Version;