Browser APIs

Flow Viritin exposes several browser APIs as clean Java interfaces so you can use them directly from server-side code without writing JavaScript.

Helper Browser API Description
ResizeObserver ResizeObserver Observe component size changes
IntersectionObserver IntersectionObserver Detect component visibility in viewport or scroll container
Geolocation Geolocation API Access device location
Share navigator.share() Native share dialog
PageVisibility Page Visibility API Detect tab/page visibility changes
WebNotification Notifications API Browser-native notifications
Fullscreen Fullscreen API Enter/exit fullscreen mode
BrowserCookie document.cookie Cookie handling that works with web sockets
WebStorage localStorage / sessionStorage Client-side key-value storage
ScreenWakeLock Screen Wake Lock API Prevent screen from dimming
Clipboard Clipboard API Read/write system clipboard