setClientId

fun setClientId(exportedClientId: String): Boolean

Update the player's client id to a value previously returned from clientId, effectively changing the identity of current music listener.

This method will only succeed if the player is not in the State.UNINITIALIZED or State.UNAVAILABLE state. Alternatively, this client id can be provided to a Builder so that the newly constructed AdaptrPlayer will start with this client id.

This call stops any music playback in progress.

If the method succeeds, then the provided client id will be the new default client id for future runs of the player.

Return

true if the client id is valid and has become the new default client id

See also

Parameters

exportedClientId

client id previously retrieved with clientId