Introduction
Installation
Guides
- Engine
- Profile
- Browser
- BrowserView
- Navigation
- Content
- DOM
- JavaScript
- Pop-ups
- Dialogs
- Downloads
- Network
- Cache
- Cookies
- Proxy
- Authentication
- Plugins
- Printing
- Passwords
- User Data Profiles
- Credit Cards
- Media
- Zoom
- Spell Checker
- Deployment
- Chromium
Troubleshooting
Migration
In this migration guide, we describe the changes in the API between 7.27 and 7.28.
Full Screen API
In the new version, the Fullscreen API is extended and extracted into a dedicated service.
Dedicated FullScreen
Service
v7.27
browser.on(FullScreenEntered.class, event -> {
Browser browser = event.browser();
});
browser.on(FullScreenExited.class, event -> {
Browser browser = event.browser();
});
browser.on(FullScreenEntered::class.java) { event ->
val browser: Browser = event.browser()
}
browser.on(FullScreenExited::class.java) { event ->
val browser: Browser = event.browser()
}
v7.28
FullScreen fullScreen = browser.fullScreen();
fullScreen.on(FullScreenEntered.class, event -> {
FullScreen fullScreen = event.fullScreen();
Browser browser = fullScreen.browser();
});
fullScreen.on(FullScreenExited.class, event -> {
FullScreen fullScreen = event.fullScreen();
Browser browser = fullScreen.browser();
});
val fullScreen: FullScreen = browser.fullScreen()
fullScreen.on(FullScreenEntered::class.java) { event ->
val fullScreen = event.fullScreen()
val browser = fullScreen.browser()
}
fullScreen.on(FullScreenExited::class.java) { event ->
val fullScreen: FullScreen = event.fullScreen()
val browser = fullScreen.browser()
}
Exiting Fullscreen Mode
In JxBrowser 7.28, it’s now possible to exit the fullscreen mode.
browser.fullScreen().exit();
browser.fullScreen().exit()