Class PlayingSessionStateCallback
- java.lang.Object
-
- in.dragonbra.javasteam.steam.steamclient.callbackmgr.CallbackMsg
-
- in.dragonbra.javasteam.steam.handlers.steamuser.callback.PlayingSessionStateCallback
-
- All Implemented Interfaces:
ICallbackMsg
public class PlayingSessionStateCallback extends CallbackMsg
This callback is received when another client starts or stops playing a game. WhileplayingBlocked, sendingEMsg.ClientGamesPlayedmessage will log you off withEResult.LoggedInElsewhereresult.
-
-
Constructor Summary
Constructors Constructor Description PlayingSessionStateCallback(JobID jobID, in.dragonbra.javasteam.protobufs.steamclient.SteammessagesClientserver2.CMsgClientPlayingSessionState.Builder msg)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetPlayingAppID()When blocked, gets the appid which is currently being played.booleanisPlayingBlocked()Indicates whether playing is currently blocked by another client.-
Methods inherited from class in.dragonbra.javasteam.steam.steamclient.callbackmgr.CallbackMsg
getJobID, setJobID
-
-
-
-
Constructor Detail
-
PlayingSessionStateCallback
public PlayingSessionStateCallback(JobID jobID, in.dragonbra.javasteam.protobufs.steamclient.SteammessagesClientserver2.CMsgClientPlayingSessionState.Builder msg)
-
-
Method Detail
-
isPlayingBlocked
public boolean isPlayingBlocked()
Indicates whether playing is currently blocked by another client.- Returns:
- true if blocked by another client, otherwise false.
-
getPlayingAppID
public int getPlayingAppID()
When blocked, gets the appid which is currently being played.- Returns:
- the app id.
-
-