public interface PlayerStateSynchronizer
限定符和类型 | 接口和说明 |
---|---|
static interface |
PlayerStateSynchronizer.OnSyncPlayerStateListener |
限定符和类型 | 方法和说明 |
---|---|
void |
syncPlayerState(java.lang.String clientToken)
同步客户端与服务端的状态信息。
|
void syncPlayerState(java.lang.String clientToken)
该方法会在客户端连接成功后调用,以同步客户端与服务端的状态信息。
clientToken
- 客户端的 token。不能为 null,且应该保证该参数的唯一性。该 token 会在
PlayerStateSynchronizer.OnSyncPlayerStateListener.onSyncPlayerState(String, PlayerState)
方法中返回,
用于鉴别是否是当前客户端客户端。