Enable or disable native back press handling. When false, system back (swipe, button) is completely ignored while the WebView is open. DISMISS still works programmatically. After the WebView is dismissed, the host app's normal back behavior is automatically restored. When true (default), back press navigates WebView back, or dismisses if no history.
true or false
Register a callback invoked when a native back press occurs. Only effective when NativeBackPressEnabled = true. If NativeBackPressEnabled = false, a warning is logged to console.
Called on back press (swipe, button, etc.)
JS Bridge protocol definitions for Huawei HarmonyOS <-> Web communication.
Communication flow: Web -> Native: window.aigensHuawei.postMessage(JSON.stringify(BridgeRequest)) Native -> Web: window.aigensHuaweiCallback(callbackId, BridgeResponse) (success) window.aigensHuaweiError(callbackId, errorMessage) (failure)