ClientIdListener

interface ClientIdListener

When a request is made to createNewClientId, this listener will be given the new client or notified when an error prevented a new id from being created.

Functions

onClientId
Link copied to clipboard
abstract fun onClientId(clientId: String)

After a new client id has been successfully created and setClientId has been called with it, this method will be called to pass on the new client id.

onError
Link copied to clipboard
abstract fun onError()

If the SDK is unable to contact the Adaptr servers to get a new client id, this method will be called. When this method is called, the player is still using the original client id. The only reason for the failure to get a new client id is loss of network connectivity - and the client app can determine when and whether to retry the request.