Skip to main content
Version: 12 Dec 2024

MLWebViewSettings

Module: WebView

Struct to define webview initialization. More...

#include <ml_webview.h>

Public Attributes

TypeName
uint32_tversion
uint32_twidth
uint32_theight
void *application_vm
void *context
MLWebViewEventCallbackscallbacks
boolis_popup
uint64_tpopup_id

Detailed Description

struct MLWebViewSettings;

Struct to define webview initialization.

This structure must be initialized by calling MLWebViewSettingsInit before use.

API Level:

  • 24

Public Attributes Documentation

version

uint32_t version;

width

uint32_t width;

Horizontal size of webview in pixels.


height

uint32_t height;

Vertical size of webview in pixels.


application_vm

void * application_vm;

JavaVM pointer to use for Android up-calls.


context

void * context;

Android jobject to android.content.Context instance for Android up-calls.


callbacks

MLWebViewEventCallbacks callbacks;
TypeDescription
MLWebViewEventCallbacksEvent handler for MLWebView callbacks.

Event callbacks for interacting with webview.


is_popup

bool is_popup;

Is this a popup?


popup_id

uint64_t popup_id;

Popup identifier used to create a webview.