createNewClientId

fun createNewClientId(listener: ClientIdListener?)

Ask the Adaptr servers for a new client id for this device, then set that to the current and default client id via setClientId, then inform the provided listener what the new client id is.

If the SDK is unable to contact the Adaptr servers for some reason, then the ClientIdListener.onError method of the listener is called. The current client id will be unchanged from before the call, and the caller can decide whether to retry the call or continue with the current id.

Parameters

listener

receive notification of the new client id or if there was an error. This may be null.