-
Notifications
You must be signed in to change notification settings - Fork 0
Steam Chat
SunriseM edited this page Jun 1, 2018
·
3 revisions
Component for interactions with the Steam Web Chat.
An SteamWeb instance.
Poll period time in milliseconds as Long.
ChatState
enum value.
Your acount oAuth API Token.
Start polling for chat events.
Log off from Chat.
- user: Long. SteamID64 from Recipient Account.
- text: String. Message to been sent.
Returns response error message if we got it, if everything is right returs null.
Listen to a suscribable Chat Event. Example
chat.listen(ChatMessageEvent::class.java).subscribe({
println("Message from ${it.sender.getSteamID64()}. ${it.message}")
})
- sender:
SteamID
. - message: String.
Fired when we receive a chat message.
- sender:
SteamID
.
Fired when an user from friend list updates its persona state.