clientId

val clientId: String?

Return the current unique client id so that it can be externally persisted or synchronized across devices and later passed to setClientId or Builder.setClientId.

If the player is in any state other than State.UNAVAILABLE, then the returned value is guaranteed to not be null.

Using this method in conjunction with setClientId lets apps switch the identity of the user, so if user X hears songs A, B, and C, user Y will get a chance to also hear them before any songs Y has previously heard are repeated.

Return

client id, or null if this client has never connected to Adaptr

See also