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.
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.)
CoreHuawei implements the same CorePlugin interface as aigens-sdk-core, but routes all method calls through the Huawei JS Bridge to HarmonyOS native.
This class is used when
isHuaWei()returns true (Huawei WebView detected via UA). It serves as a drop-in replacement for Capacitor'sCoreplugin object.