Initialization

We have redesigned our APIs in the 2.x version, now you can support your users in a more friendly way.

To help you upgrade from version 1.x to version 2.x, we will take several commonly used scenarios as examples to show your the difference.

Initialization #

ELvaChatServiceSdk.init(YourActivity.this, "Your AppKey", "Your Domain", "Your AppId");
ELvaChatServiceSdk.setOnInitializedCallback(new ELvaChatServiceSdk.OnInitializationCallback() {
    @Override
    public void onInitialized() {
        // You call get a callback when aihelp is successfully initialized.
    }
});
AIHelpSupport.init(YourContext.this, "Your AppKey", "Your Domain", "Your AppId");
AIHelpSupport.setOnAIHelpInitializedCallback(new OnAIHelpInitializedCallback() {
    @Override
    public void onAIHelpInitialized() {
        // You call get a callback when aihelp is successfully initialized.
    }
});