Package 

Class EmilyChatEnvironment


  • 
    public class EmilyChatEnvironment
    
                        

    The Emily widget bundle that the embedded android.webkit.WebView should load.

    In practice the SDK loads a small HTML container (mobile-v<major>.html) that boots emily-v<major>.js and bridges native ↔ web. The container is versioned by the web SDK's MAJOR so a host app pinned to v1 keeps working across non-breaking widget releases.

    Use Custom for staging branches, on-prem deployments, or pointing at a locally served vite preview build during development (note: cleartext http://10.0.2.2:5174/... requires a network-security-config opt-in in the host app, see the README).

    Kept as a sealed class (rather than an enum) so Custom can carry a URL.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final String url
    • Method Summary

      Modifier and Type Method Description
      abstract String getUrl() Resolves to the concrete URL the WebView should load.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getUrl

         abstract String getUrl()

        Resolves to the concrete URL the WebView should load.