@leancloud/play
v1.0.0
Global
CreateRoomFlag
deserializeObject
Event
LogLevel
ReceiverGroup
registerType
serializeObject
setAdapters
Classes
Client
Members
lobbyRoomList
player
room
userId
Methods
addRoomExpectedUserIds
clearRoomExpectedUserIds
close
async
connect
createRoom
async
joinLobby
joinOrCreateRoom
async
joinRandomRoom
async
joinRoom
async
kickPlayer
leaveLobby
leaveRoom
async
matchRandom
pauseMessageQueue
reconnect
async
reconnectAndRejoin
async
rejoinRoom
async
removeRoomExpectedUserIds
resumeMessageQueue
sendEvent
setMaster
setRoomExpectedUserIds
setRoomMaxPlayerCount
setRoomOpen
setRoomVisible
Lobby
LobbyRoom
Members
customRoomProperties
emptyRoomTtl
expectedUserIds
maxPlayerCount
open
playerCount
playerTtl
roomName
visible
Player
Members
actorId
customProperties
isActive
isLocal
isMaster
userId
Methods
setCustomProperties
GenericCollection
Members
displayName
Methods
deserializeBinary
deserializeBinaryFromReader
serializeBinaryToWriter
toObject
addListValue
addMapEntryValue
clearListValueList
clearMapEntryValueList
getListValueList
getMapEntryValueList
serializeBinary
setListValueList
setMapEntryValueList
toObject
MapEntry
Members
displayName
Methods
deserializeBinary
deserializeBinaryFromReader
serializeBinaryToWriter
toObject
clearVal
getKey
getVal
hasVal
serializeBinary
setKey
setVal
toObject
GenericCollectionValue
Members
displayName
Type
ValueCase
Methods
deserializeBinary
deserializeBinaryFromReader
serializeBinaryToWriter
toObject
clearBoolValue
clearBytesValue
clearDoubleValue
clearFloatValue
clearIntValue
clearLongIntValue
clearStringValue
getBoolValue
getBytesValue
getBytesValue_asB64
getBytesValue_asU8
getDoubleValue
getFloatValue
getIntValue
getLongIntValue
getObjectTypeId
getStringValue
getType
getValueCase
hasBoolValue
hasBytesValue
hasDoubleValue
hasFloatValue
hasIntValue
hasLongIntValue
hasStringValue
serializeBinary
setBoolValue
setBytesValue
setDoubleValue
setFloatValue
setIntValue
setLongIntValue
setObjectTypeId
setStringValue
setType
toObject
AckCommand
Members
displayName
Methods
deserializeBinary
deserializeBinaryFromReader
serializeBinaryToWriter
toObject
getI
getTimestamp
serializeBinary
setI
setTimestamp
toObject
AppInfo
Members
displayName
Methods
deserializeBinary
deserializeBinaryFromReader
serializeBinaryToWriter
toObject
getAppCode
getAppMsg
serializeBinary
setAppCode
setAppMsg
toObject
AppStatistic
Members
displayName
Methods
deserializeBinary
deserializeBinaryFromReader
serializeBinaryToWriter
toObject
getCountOfPlayers
getCountOfPlayersInRooms
getCountOfPlayersOnRouter
getCountOfRooms
serializeBinary
setCountOfPlayers
setCountOfPlayersInRooms
setCountOfPlayersOnRouter
setCountOfRooms
toObject
Body
Members
BodyCase
displayName
Methods
deserializeBinary
deserializeBinaryFromReader
serializeBinaryToWriter
toObject
clearDirect
clearError
clearEvents
clearRequest
clearResponse
clearRoomList
clearRoomNotification
clearStatistic
getBodyCase
getDirect
getError
getEvents
getRequest
getResponse
getRoomList
getRoomNotification
getStatistic
hasDirect
hasError
hasEvents
hasRequest
hasResponse
hasRoomList
hasRoomNotification
hasStatistic
serializeBinary
setDirect
setError
setEvents
setRequest
setResponse
setRoomList
setRoomNotification
setStatistic
toObject
Command
Members
displayName
Methods
deserializeBinary
deserializeBinaryFromReader
serializeBinaryToWriter
toObject
getBody
getBody_asB64
getBody_asU8
getCmd
getOp
serializeBinary
setBody
setCmd
setOp
toObject
CreateRoomRequest
Members
displayName
Methods
deserializeBinary
deserializeBinaryFromReader
serializeBinaryToWriter
toObject
clearRoomOptions
getRoomOptions
hasRoomOptions
serializeBinary
setRoomOptions
toObject
CreateRoomResponse
Members
displayName
Methods
deserializeBinary
deserializeBinaryFromReader
serializeBinaryToWriter
toObject
clearRoomOptions
getAddr
getRoomCreated
getRoomOptions
hasRoomOptions
serializeBinary
setAddr
setRoomCreated
setRoomOptions
toObject
DirectCommand
Members
displayName
Methods
deserializeBinary
deserializeBinaryFromReader
serializeBinaryToWriter
toObject
addToActorIds
clearToActorIdsList
getCached
getCachingOption
getEventId
getEventOptions
getFromActorId
getI
getInterestGroup
getMsg
getMsg_asB64
getMsg_asU8
getReceiverGroup
getTimestamp
getToActorIdsList
serializeBinary
setCached
setCachingOption
setEventId
setEventOptions
setFromActorId
setI
setInterestGroup
setMsg
setReceiverGroup
setTimestamp
setToActorIdsList
toObject
ErrorCommand
Members
displayName
Methods
deserializeBinary
deserializeBinaryFromReader
serializeBinaryToWriter
toObject
clearErrorInfo
getErrorInfo
hasErrorInfo
serializeBinary
setErrorInfo
toObject
ErrorInfo
Members
displayName
Methods
deserializeBinary
deserializeBinaryFromReader
serializeBinaryToWriter
toObject
clearAppInfo
getAppInfo
getDetail
getReasonCode
hasAppInfo
serializeBinary
setAppInfo
setDetail
setReasonCode
toObject
EventsCommand
Members
displayName
Methods
deserializeBinary
deserializeBinaryFromReader
serializeBinaryToWriter
toObject
addEvents
clearEventsList
getEventsList
serializeBinary
setEventsList
toObject
EventsRequest
Members
displayName
Methods
deserializeBinary
deserializeBinaryFromReader
serializeBinaryToWriter
toObject
clearActorId
clearEventId
getActorId
getEventId
getMsg
getMsg_asB64
getMsg_asU8
hasActorId
hasEventId
serializeBinary
setActorId
setEventId
setMsg
toObject
InterestGroups
Members
displayName
Methods
deserializeBinary
deserializeBinaryFromReader
serializeBinaryToWriter
toObject
addDisabledGroups
addEnabledGroups
clearDisabledGroupsList
clearEnabledGroupsList
getDisabledGroupsList
getEnabledGroupsList
serializeBinary
setDisabledGroupsList
setEnabledGroupsList
toObject
IntValue
Members
displayName
Methods
deserializeBinary
deserializeBinaryFromReader
serializeBinaryToWriter
toObject
getVal
serializeBinary
setVal
toObject
JoinLobbyRequest
Members
displayName
Methods
deserializeBinary
deserializeBinaryFromReader
serializeBinaryToWriter
toObject
getLobbyId
serializeBinary
setLobbyId
toObject
JoinRoomNotification
Members
displayName
Methods
deserializeBinary
deserializeBinaryFromReader
serializeBinaryToWriter
toObject
clearMember
getMember
hasMember
serializeBinary
setMember
toObject
JoinRoomRequest
Members
displayName
Methods
deserializeBinary
deserializeBinaryFromReader
serializeBinaryToWriter
toObject
clearRoomOptions
getCreateOnNotFound
getExpectAttr
getExpectAttr_asB64
getExpectAttr_asU8
getPiggybackPeerId
getRejoin
getRoomOptions
hasRoomOptions
serializeBinary
setCreateOnNotFound
setExpectAttr
setPiggybackPeerId
setRejoin
setRoomOptions
toObject
JoinRoomResponse
Members
displayName
Methods
deserializeBinary
deserializeBinaryFromReader
serializeBinaryToWriter
toObject
clearRoomOptions
getAddr
getRoomOptions
hasRoomOptions
serializeBinary
setAddr
setRoomOptions
toObject
KickMemberRequest
Members
displayName
Methods
deserializeBinary
deserializeBinaryFromReader
serializeBinaryToWriter
toObject
clearAppInfo
getAppInfo
getTargetActorId
hasAppInfo
serializeBinary
setAppInfo
setTargetActorId
toObject
KickMemberResponse
Members
displayName
Methods
deserializeBinary
deserializeBinaryFromReader
serializeBinaryToWriter
toObject
getTargetActorId
serializeBinary
setTargetActorId
toObject
LeftRoomNotification
Members
displayName
Methods
deserializeBinary
deserializeBinaryFromReader
serializeBinaryToWriter
toObject
getActorId
serializeBinary
setActorId
toObject
RequestMessage
Members
displayName
RequestCase
Methods
deserializeBinary
deserializeBinaryFromReader
serializeBinaryToWriter
toObject
clearCreateRoom
clearEvents
clearInterestGroups
clearJoinLobby
clearJoinRoom
clearKickMember
clearSessionOpen
clearUpdateMasterClient
clearUpdateProperty
clearUpdateSysProperty
getCreateRoom
getEvents
getI
getInterestGroups
getJoinLobby
getJoinRoom
getKickMember
getRequestCase
getSessionOpen
getUpdateMasterClient
getUpdateProperty
getUpdateSysProperty
hasCreateRoom
hasEvents
hasInterestGroups
hasJoinLobby
hasJoinRoom
hasKickMember
hasSessionOpen
hasUpdateMasterClient
hasUpdateProperty
hasUpdateSysProperty
serializeBinary
setCreateRoom
setEvents
setI
setInterestGroups
setJoinLobby
setJoinRoom
setKickMember
setSessionOpen
setUpdateMasterClient
setUpdateProperty
setUpdateSysProperty
toObject
ResponseMessage
Members
displayName
ResponseCase
Methods
deserializeBinary
deserializeBinaryFromReader
serializeBinaryToWriter
toObject
clearAck
clearCreateRoom
clearErrorInfo
clearInterestGroups
clearJoinRoom
clearKickMember
clearUpdateMasterClient
clearUpdateProperty
clearUpdateSysProperty
getAck
getCreateRoom
getErrorInfo
getI
getInterestGroups
getJoinRoom
getKickMember
getResponseCase
getUpdateMasterClient
getUpdateProperty
getUpdateSysProperty
hasAck
hasCreateRoom
hasErrorInfo
hasInterestGroups
hasJoinRoom
hasKickMember
hasUpdateMasterClient
hasUpdateProperty
hasUpdateSysProperty
serializeBinary
setAck
setCreateRoom
setErrorInfo
setI
setInterestGroups
setJoinRoom
setKickMember
setUpdateMasterClient
setUpdateProperty
setUpdateSysProperty
toObject
RoomListCommand
Members
displayName
Methods
deserializeBinary
deserializeBinaryFromReader
serializeBinaryToWriter
toObject
addList
clearListList
getListList
serializeBinary
setListList
toObject
RoomMember
Members
displayName
Methods
deserializeBinary
deserializeBinaryFromReader
serializeBinaryToWriter
toObject
getActorId
getAttr
getAttr_asB64
getAttr_asU8
getInactive
getPid
serializeBinary
setActorId
setAttr
setInactive
setPid
toObject
RoomNotification
Members
displayName
NotificationCase
Methods
deserializeBinary
deserializeBinaryFromReader
serializeBinaryToWriter
toObject
clearAppInfo
clearJoinRoom
clearLeftRoom
clearUpdateMasterClient
clearUpdateProperty
clearUpdateSysProperty
getAppInfo
getByMaster
getInitByActor
getJoinRoom
getLeftRoom
getNotificationCase
getUpdateMasterClient
getUpdateProperty
getUpdateSysProperty
hasAppInfo
hasJoinRoom
hasLeftRoom
hasUpdateMasterClient
hasUpdateProperty
hasUpdateSysProperty
serializeBinary
setAppInfo
setByMaster
setInitByActor
setJoinRoom
setLeftRoom
setUpdateMasterClient
setUpdateProperty
setUpdateSysProperty
toObject
RoomOptions
Members
displayName
Methods
deserializeBinary
deserializeBinaryFromReader
serializeBinaryToWriter
toObject
addExpectMembers
addLobbyAttrKeys
addMembers
clearExpectMembersList
clearLobbyAttrKeysList
clearMembersList
clearOpen
clearVisible
getAttr
getAttr_asB64
getAttr_asU8
getCid
getEmptyRoomTtl
getExpectMembersList
getFlag
getLobbyAttrKeysList
getMasterActorId
getMaxMembers
getMemberCount
getMembersList
getOpen
getPlayerTtl
getPluginName
getVisible
hasOpen
hasVisible
serializeBinary
setAttr
setCid
setEmptyRoomTtl
setExpectMembersList
setFlag
setLobbyAttrKeysList
setMasterActorId
setMaxMembers
setMemberCount
setMembersList
setOpen
setPlayerTtl
setPluginName
setVisible
toObject
RoomSystemProperty
Members
displayName
Methods
deserializeBinary
deserializeBinaryFromReader
serializeBinaryToWriter
toObject
clearOpen
clearVisible
getExpectMembers
getMaxMembers
getOpen
getVisible
hasOpen
hasVisible
serializeBinary
setExpectMembers
setMaxMembers
setOpen
setVisible
toObject
SessionOpenRequest
Members
displayName
Methods
deserializeBinary
deserializeBinaryFromReader
serializeBinaryToWriter
toObject
getAppId
getConfigBitmap
getGameVersion
getN
getPeerId
getProtocolVersion
getS
getSdkVersion
getSessionToken
getT
serializeBinary
setAppId
setConfigBitmap
setGameVersion
setN
setPeerId
setProtocolVersion
setS
setSdkVersion
setSessionToken
setT
toObject
StatisticCommand
Members
displayName
Methods
deserializeBinary
deserializeBinaryFromReader
serializeBinaryToWriter
toObject
clearAppStats
getAppStats
hasAppStats
serializeBinary
setAppStats
toObject
UpdateMasterClientNotification
Members
displayName
Methods
deserializeBinary
deserializeBinaryFromReader
serializeBinaryToWriter
toObject
getMasterActorId
serializeBinary
setMasterActorId
toObject
UpdateMasterClientRequest
Members
displayName
Methods
deserializeBinary
deserializeBinaryFromReader
serializeBinaryToWriter
toObject
getMasterActorId
serializeBinary
setMasterActorId
toObject
UpdateMasterClientResponse
Members
displayName
Methods
deserializeBinary
deserializeBinaryFromReader
serializeBinaryToWriter
toObject
getMasterActorId
serializeBinary
setMasterActorId
toObject
UpdatePropertyNotification
Members
displayName
Methods
deserializeBinary
deserializeBinaryFromReader
serializeBinaryToWriter
toObject
getActorId
getAttr
getAttr_asB64
getAttr_asU8
serializeBinary
setActorId
setAttr
toObject
UpdatePropertyRequest
Members
displayName
Methods
deserializeBinary
deserializeBinaryFromReader
serializeBinaryToWriter
toObject
getAttr
getAttr_asB64
getAttr_asU8
getExpectAttr
getExpectAttr_asB64
getExpectAttr_asU8
getTargetActorId
serializeBinary
setAttr
setExpectAttr
setTargetActorId
toObject
UpdatePropertyResponse
Members
displayName
Methods
deserializeBinary
deserializeBinaryFromReader
serializeBinaryToWriter
toObject
getActorId
getAttr
getAttr_asB64
getAttr_asU8
serializeBinary
setActorId
setAttr
toObject
UpdateSysPropertyNotification
Members
displayName
Methods
deserializeBinary
deserializeBinaryFromReader
serializeBinaryToWriter
toObject
clearSysAttr
getSysAttr
hasSysAttr
serializeBinary
setSysAttr
toObject
UpdateSysPropertyRequest
Members
displayName
Methods
deserializeBinary
deserializeBinaryFromReader
serializeBinaryToWriter
toObject
clearExpectSysAttr
clearSysAttr
getExpectSysAttr
getSysAttr
hasExpectSysAttr
hasSysAttr
serializeBinary
setExpectSysAttr
setSysAttr
toObject
UpdateSysPropertyResponse
Members
displayName
Methods
deserializeBinary
deserializeBinaryFromReader
serializeBinaryToWriter
toObject
clearSysAttr
getSysAttr
hasSysAttr
serializeBinary
setSysAttr
toObject
Room
Members
customProperties
expectedUserIds
master
masterId
maxPlayerCount
name
open
playerList
visible
Methods
addExpectedUserIds
clearExpectedUserIds
close
async
getPlayer
kickPlayer
leave
async
removeExpectedUserIds
sendEvent
setCustomProperties
setExpectedUserIds
setMaster
setMaxPlayerCount
setOpen
setVisible
Docs
»
Class: Lobby
Lobby
大厅类,用来请求和接收大厅相关事件
Constructor
new Lobby
()