Platforms to show: All Mac Windows Linux Cross-Platform
WebView2
Control to use Microsoft WebView2 browser based on Chrome in Xojo.
- Classes
- class WebView2CookieManagerMBS
- method AddOrUpdateCookie(cookie as WebView2CookieMBS)
- method Constructor
- method Constructor(cookie as WebView2CookieMBS)
- method CopyCookie(Cookie as WebView2CookieMBS) as WebView2CookieMBS
- method CreateCookie(Name as String, Value as String, Domain as String, Path as String) as WebView2CookieMBS
- method DeleteAllCookies
- method DeleteCookie(cookie as WebView2CookieMBS)
- method DeleteCookies(Name as String, URI as string)
- method DeleteCookiesWithDomainAndPath(Name as String, Domain as string, Path as String)
- method GetCookies(URI as String = "")
- method GetCookiesSync(URI as String = "") as WebView2CookieMBS()
- property Handle as Integer
- event GotCookies(ErrorCode as Integer, Cookies() as WebView2CookieMBS)
- class WebView2CookieMBS
- class WebView2ExceptionMBS
- class WebView2PrintSettingsMBS
- method Constructor
- property Collation as Integer
- property ColorMode as Integer
- property Copies as Integer
- property Duplex as Integer
- property FooterURI as String
- property HeaderTitle as String
- property MarginBottom as Double
- property MarginLeft as Double
- property MarginRight as Double
- property MarginTop as Double
- property Orientation as Integer
- property PageHeight as Double
- property PageRanges as String
- property PagesPerSide as Integer
- property PageWidth as Double
- property PrinterName as String
- property ScaleFactor as Double
- property ShouldPrintBackgrounds as Boolean
- property ShouldPrintHeaderAndFooter as Boolean
- property ShouldPrintSelectionOnly as Boolean
- class WebView2WindowFeaturesMBS
- method Constructor
- property HasPosition as Boolean
- property HasSize as Boolean
- property Height as Integer
- property Left as Integer
- property ShouldDisplayMenuBar as Boolean
- property ShouldDisplayScrollBars as Boolean
- property ShouldDisplayStatus as Boolean
- property ShouldDisplayToolbar as Boolean
- property Top as Integer
- property Width as Integer
- class WebView2CookieManagerMBS
- Controls
- control DesktopWebView2ControlMBS
- method AddScriptToExecuteOnDocumentCreated(JavaScript as String, tag as variant = nil)
- method AddWebResourceRequestedFilter(URL as String, resourceType as Integer)
- shared method AvailableCoreWebView2BrowserVersionString as string
- method CanGoBack as Boolean
- method CanGoForward as Boolean
- method CapturePreview(ImageFormat as Integer = 0)
- method ClearSelection
- method ClearVirtualHostNameToFolderMapping(hostName as String)
- method Copy
- method CreatePrintSettings as WebView2PrintSettingsMBS
- method Cut
- method ExecuteScript(JavaScript as String, tag as variant = nil)
- method ExecuteScriptSync(JavaScript as String, byref ErrorCode as Integer) as String
- method GoBack
- method GoForward
- method HTMLText as String
- method LoadHTML(HTML as String)
- method LoadURL(URL as String)
- method OpenDevToolsWindow
- method Paste
- method PlainText as String
- method PostWebMessageAsJson(webMessageAsJson as String)
- method PostWebMessageAsString(webMessageAsString as String)
- method Print
- method PrintToPdf(Path as String, PrintSettings as WebView2PrintSettingsMBS = nil)
- method Reload
- method RemoveScriptToExecuteOnDocumentCreated(ID as String
- method RemoveWebResourceRequestedFilter(URL as String, resourceType as Integer)
- method SelectAll
- method SetVirtualHostNameToFolderMapping(hostName as String, folderPath as String, accessKind as Integer)
- method Stop
- property AdditionalBrowserArguments as String
- property AllowSingleSignOnUsingOSPrimaryAccount as Boolean
- property areBrowserAcceleratorKeysEnabled as Boolean
- property AreDefaultContextMenusEnabled as Boolean
- property AreDefaultScriptDialogsEnabled as Boolean
- property AreDevToolsEnabled as Boolean
- property AreHostObjectsAllowed as Boolean
- property BrowserExecutableFolder as String
- property BrowserVersionString as String
- property ContainsFullScreenElement as Boolean
- property CookieManager as WebView2CookieManagerMBS
- property CookieManager as WebView2CookieManagerMBS
- property DefaultBackgroundColor as Color
- property DocumentTitle as String
- property HiddenPdfToolbarItems as Integer
- property IsBuiltInErrorPageEnabled as Boolean
- property IsGeneralAutofillEnabled as Boolean
- property IsPasswordAutosaveEnabled as Boolean
- property IsPinchZoomEnabled as Boolean
- property IsScriptEnabled as Boolean
- property IsStatusBarEnabled as Boolean
- property IsSwipeNavigationEnabled as Boolean
- property IsWebMessageEnabled as Boolean
- property IsZoomControlEnabled as Boolean
- property Language as String
- property ProcessID as Integer
- property TargetCompatibleBrowserVersion as String
- property URL as String
- property UserAgent as String
- property UserDataFolder as String
- property ZoomFactor as Double
- event AddScriptToExecuteOnDocumentCreatedCompleted(JavaScript as String, ErrorCode as Integer, ID as String, Tag as Variant)
- event CapturePreviewCompleted(ImageFormat as Integer, ErrorCode as Integer, PictureData as String)
- event Closing
- event Configure
- event ConstructContextualMenu(base as DesktopMenuItem, x as Integer, y as Integer) As Boolean
- event ContainsFullScreenElementChanged
- event ContentLoading(isErrorPage as Boolean, NavigationID as UInt64)
- event ContextualMenuItemSelected(selectedItem As DesktopMenuItem) As Boolean
- event DocumentTitleChanged
- event ExecuteScriptCompleted(JavaScript as String, ErrorCode as Integer, resultObjectAsJson as String, Tag as Variant)
- event FocusLost
- event FocusReceived
- event FrameNavigationCompleted(isSuccess as Boolean, ErrorStatus as Integer, NavigationID as UInt64)
- event FrameNavigationStarting(URL as String, IsUserInitiated as Boolean, IsRedirected as Boolean, NavigationID as UInt64) as Boolean
- event HistoryChanged
- event MenuBarSelected
- event NavigationCompleted(isSuccess as Boolean, ErrorStatus as Integer, NavigationID as UInt64)
- event NavigationStarting(URL as String, IsUserInitiated as Boolean, IsRedirected as Boolean, NavigationID as UInt64) as Boolean
- event NewWindowRequested(URL as String, IsUserInitiated as Boolean, WindowFeatures as WebView2WindowFeaturesMBS, byref NewWindow as Variant) as Boolean
- event Opened
- event Opening
- event PermissionRequested(URL as String, PermissionKind as Integer, IsUserInitiated as Boolean, byref State as Integer)
- event PrintCompleted(Path as String, errorCode as Integer, isSuccessful as boolean)
- event ProcessFailed(processFailedKind as Integer)
- event SourceChanged(isNewDocument as Boolean)
- event WebMessageReceived(Source as String, webMessageAsJson as String, webMessageAsString as String)
- event WindowCloseRequested
- event ZoomFactorChanged
- control WebView2ControlMBS
- method AddScriptToExecuteOnDocumentCreated(JavaScript as String, tag as variant = nil)
- method AddWebResourceRequestedFilter(URL as String, resourceType as Integer)
- shared method AvailableCoreWebView2BrowserVersionString as string
- method CanGoBack as Boolean
- method CanGoForward as Boolean
- method CapturePreview(ImageFormat as Integer = 0)
- method ClearSelection
- method ClearVirtualHostNameToFolderMapping(hostName as String)
- method Copy
- method CreatePrintSettings as WebView2PrintSettingsMBS
- method Cut
- method ExecuteScript(JavaScript as String, tag as variant = nil)
- method ExecuteScriptSync(JavaScript as String, byref ErrorCode as Integer) as String
- method GoBack
- method GoForward
- method HTMLText as String
- method LoadHTML(HTML as String)
- method LoadURL(URL as String)
- method OpenDevToolsWindow
- method Paste
- method PlainText as String
- method PostWebMessageAsJson(webMessageAsJson as String)
- method PostWebMessageAsString(webMessageAsString as String)
- method Print
- method PrintToPdf(Path as String, PrintSettings as WebView2PrintSettingsMBS = nil)
- method Reload
- method RemoveScriptToExecuteOnDocumentCreated(ID as String
- method RemoveWebResourceRequestedFilter(URL as String, resourceType as Integer)
- method SelectAll
- method SetVirtualHostNameToFolderMapping(hostName as String, folderPath as String, accessKind as Integer)
- method Stop
- property AdditionalBrowserArguments as String
- property AllowSingleSignOnUsingOSPrimaryAccount as Boolean
- property areBrowserAcceleratorKeysEnabled as Boolean
- property AreDefaultContextMenusEnabled as Boolean
- property AreDefaultScriptDialogsEnabled as Boolean
- property AreDevToolsEnabled as Boolean
- property AreHostObjectsAllowed as Boolean
- property BrowserExecutableFolder as String
- property BrowserVersionString as String
- property ContainsFullScreenElement as Boolean
- property CookieManager as WebView2CookieManagerMBS
- property DefaultBackgroundColor as Color
- property DocumentTitle as String
- property HiddenPdfToolbarItems as Integer
- property IsBuiltInErrorPageEnabled as Boolean
- property IsGeneralAutofillEnabled as Boolean
- property IsPasswordAutosaveEnabled as Boolean
- property IsPinchZoomEnabled as Boolean
- property IsScriptEnabled as Boolean
- property IsStatusBarEnabled as Boolean
- property IsSwipeNavigationEnabled as Boolean
- property IsWebMessageEnabled as Boolean
- property IsZoomControlEnabled as Boolean
- property Language as String
- property ProcessID as Integer
- property TargetCompatibleBrowserVersion as String
- property URL as String
- property UserAgent as String
- property UserDataFolder as String
- property ZoomFactor as Double
- event AddScriptToExecuteOnDocumentCreatedCompleted(JavaScript as String, ErrorCode as Integer, ID as String, Tag as Variant)
- event CapturePreviewCompleted(ImageFormat as Integer, ErrorCode as Integer, PictureData as String)
- event Close
- event Closing
- event Configure
- event ConstructContextualMenu(base as MenuItem, x as Integer, y as Integer) as Boolean
- event ContainsFullScreenElementChanged
- event ContentLoading(isErrorPage as Boolean, NavigationID as UInt64)
- event ContextualMenuAction(hitItem as MenuItem) as Boolean
- event DocumentTitleChanged
- event EnableMenuItems
- event ExecuteScriptCompleted(JavaScript as String, ErrorCode as Integer, resultObjectAsJson as String, Tag as Variant)
- event FocusLost
- event FocusReceived
- event FrameNavigationCompleted(isSuccess as Boolean, ErrorStatus as Integer, NavigationID as UInt64)
- event FrameNavigationStarting(URL as String, IsUserInitiated as Boolean, IsRedirected as Boolean, NavigationID as UInt64) as Boolean
- event GotFocus
- event HistoryChanged
- event LostFocus
- event MenuBarSelected
- event NavigationCompleted(isSuccess as Boolean, ErrorStatus as Integer, NavigationID as UInt64)
- event NavigationStarting(URL as String, IsUserInitiated as Boolean, IsRedirected as Boolean, NavigationID as UInt64) as Boolean
- event NewWindowRequested(URL as String, IsUserInitiated as Boolean, WindowFeatures as WebView2WindowFeaturesMBS, byref NewWindow as Variant) as Boolean
- event Open
- event Opened
- event Opening
- event PermissionRequested(URL as String, PermissionKind as Integer, IsUserInitiated as Boolean, byref State as Integer)
- event PrintCompleted(Path as String, errorCode as Integer, isSuccessful as boolean)
- event ProcessFailed(processFailedKind as Integer)
- event SourceChanged(isNewDocument as Boolean)
- event WebMessageReceived(Source as String, webMessageAsJson as String, webMessageAsString as String)
- event WindowCloseRequested
- event ZoomFactorChanged
- control DesktopWebView2ControlMBS
- Blog Entries
- WebView2 for Xojo upgrades
- MonkeyBread Software Releases the MBS Xojo Plugins in version 23.4
- News from the MBS Xojo Plugins in version 21.5
- New desktop controls
- News from the MBS Xojo Plugins Version 21.4
- News from the MBS Xojo Plugins Version 21.1
- MBS Xojo Plugins Version 21.0 News
- MonkeyBread Software Releases the MBS Xojo Plugins in version 21.0
- MBS Xojo Plugins in version 20.5
- WebView2 for Xojo
Release notes
- Version 24.2
- Improved WebView2ControlMBS to pick temp folder for user data folder if you don't set userDataFolder property.
- Version 23.4
- Added SetVirtualHostNameToFolderMapping and ClearVirtualHostNameToFolderMapping methods to WebView2ControlMBS control.
- Version 23.2
- Added CreatePrintSettings method to WebView2ControlMBS class and PrintToPdf can now take a WebView2PrintSettingsMBS object.
- Added WebView2PrintSettingsMBS class.
- Fixed DefaultBackgroundColor property in WebView2ControlMBS control, so you can set it in Open event.
- Version 23.1
- Added PrintToPdf method and PrintCompleted event to WebView2ControlMBS class.
- Added WebView2CookieManagerMBS and WebView2CookieMBS classes.
- Version 22.2
- Added Copy, Cut, Paste, SelectAll, ClearSelection and Print methods to WebView2ControlMBS control.
- Version 22.0
- Fixed problem with resizing of WebView2ControlMBS control.
- Version 21.5
- Added NewWindowRequested event to WebView2ControlMBS control.
- Added DefaultBackgroundColor property to WebView2ControlMBS control.
- Added WebView2WindowFeaturesMBS class.
- Version 21.4
- Added areBrowserAcceleratorKeysEnabled, IsGeneralAutofillEnabled, IsPasswordAutosaveEnabled, IsPinchZoomEnabled and UserAgent properties to WebView2ControlMBS control.
- Fixed memory leak in CapturePreview method in WebView2ControlMBS control.
- Version 21.3
- Fixed problem with WebView2ControlMBS control resizing on container control.
The items on this page are in the following plugins: MBS WinFrameworks Plugin.