Class AngularNativeBridge
-
- All Implemented Interfaces:
public final class AngularNativeBridgeJavaScript bridge used by AngularTS micro-apps running inside an Angular Native WebView.
AngularTS calls
window.AngularNative.receive(serializedMessage). Navigation calls are translated into Android Navigation routes so the native shell can apply Activity/Fragment transitions while the page keeps using AngularTS scopes, directives, and backend-rendered fragments.
-
-
Constructor Summary
Constructors Constructor Description AngularNativeBridge(AngularNativeDestination destination)
-
Method Summary
Modifier and Type Method Description final UnitinjectEnvironment()Injects native platform classes and theme tokens into the current WebView document. final Unitreceive(String message)Receives a serialized AngularTS native call from JavaScript. final UnitunmountAll()Removes native views mounted for the current WebView destination. -
-
Constructor Detail
-
AngularNativeBridge
AngularNativeBridge(AngularNativeDestination destination)
-
-
Method Detail
-
injectEnvironment
final Unit injectEnvironment()
Injects native platform classes and theme tokens into the current WebView document.
-
receive
final Unit receive(String message)
Receives a serialized AngularTS native call from JavaScript.
-
unmountAll
final Unit unmountAll()
Removes native views mounted for the current WebView destination.
-
-
-
-