Class AngularNativeBridge

  • All Implemented Interfaces:

    
    public final class AngularNativeBridge
    
                        

    JavaScript 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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Unit injectEnvironment() Injects native platform classes and theme tokens into the current WebView document.
      final Unit receive(String message) Receives a serialized AngularTS native call from JavaScript.
      final Unit unmountAll() Removes native views mounted for the current WebView destination.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.