Package 

Class EmilyChatOptions


  • 
    public final class EmilyChatOptions
    
                        

    Configuration passed to EmilyChat.configure. Mirrors the JS EmilyInitOptions shape — the bridge serializes this straight into the INIT.payload object the web SDK consumes.

    EmilyChat.configure(
        EmilyChatOptions(
            serviceSid = "LV3-...",
            locale = "zh-Hans",
            metadata = mapOf("plan" to "pro", "tenantId" to 42),
        )
    )

    Note: there is no visual/branding option here. The widget's appearance (brand color, theme, header title, logos…) comes from the tenant's chat configuration on the Level3AI server, fetched by the web bundle at boot — nothing for the host app to pass.

    Note: metadata and attributes must contain only JSON-compatible values (String, Boolean, numeric types, null, or Map / List / org.json.JSONObject / org.json.JSONArray of the same). Non-JSON values surface as an EmilyChatEvent.BridgeError at open-time rather than crashing.