getUserAgent

fun getUserAgent(platform: Platform, clientSDKName: String, clientSDKVersion: String?, appName: String?, appVersion: String?): String

To build a user agent that provide information where this sdk is being used, on client level pass app-version. here we can read the client version. on client sdk level pass client-name and append. and client version on core level read platform level and append. if the value userAgent is null then we pass platform as default. sample output android core-client/0.0.19/ app-version/11.40.0

Parameters

platform

where the sdk is being used Platform.Type.ANDROID or Platform.Type.IOS or Platform.Type.JVM or Platform.Type.BROWSER

clientSDKName

the sdk making api calls name

clientSDKVersion

the sdk making api version

appVersion

version of application where the sdk is being used