FanmeterWebInterface class

Provides a JavaScript bridge between the Fanzone web app and the Fanmeter SDK.

Exposes window.FanmeterBridge in a WebViewController, allowing the web layer to invoke native SDK methods without platform-specific logic on the JavaScript side.

The bridge itself is installed by the native SDKs, not reimplemented here: the controller's underlying native WebView/WKWebView is handed to the SDK's own FanmeterWebInterface. Everything that class provides therefore comes for free and stays consistent with a native integration — including the localized GPS permission dialogs and the injection of window.FanmeterBridge at document start (so the web layer can call it during the initial parse).

On Android the SDK also takes over the loss of the WebView's renderer process, which the system reclaims freely while the app sits in the background: left to webview_flutter's own client, the WebView answers that nobody handled it and kills the whole app process on purpose, taking the running foreground service — and the user's participation in the event — down with it.

Constructors

FanmeterWebInterface()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

makeController({void onPageStarted(String url)?, void onPageFinished(String url)?, void onProgress(int progress)?, FutureOr<NavigationDecision> onNavigationRequest(NavigationRequest)?, void onUrlChange(UrlChange change)?, void onWebResourceError(WebResourceError)?, void onHttpError(HttpResponseError error)?, void onHttpAuthRequest(HttpAuthRequest request)?, VoidCallback? onCloseRequested}) → Future<WebViewController>
Creates a WebViewController with the Fanmeter JavaScript bridge (window.FanmeterBridge) installed by the native SDK.