start

fun start(application: Application, appId: String, policy: HSPolicy)

Call this function to start th SDK with a single AppID. You should call this function only once. You should call this function only from the main thread.

Parameters

application

The application object.

appId

The AppID of your account.

policy

The policy object that config the SDK.


fun start(application: Application, appIds: ArrayList<String>, policy: HSPolicy)

Call this function to start th SDK with multiple AppIDs. You should call this function only once. You should call this function only from the main thread.

Parameters

application

The application object.

appIds

The list of AppIDs for your account.

policy

The policy object that config the SDK.