Class SteamScreenshots
- java.lang.Object
-
- in.dragonbra.javasteam.handlers.ClientMsgHandler
-
- in.dragonbra.javasteam.steam.handlers.steamscreenshots.SteamScreenshots
-
public class SteamScreenshots extends ClientMsgHandler
This handler is used for screenshots.
-
-
Field Summary
Fields Modifier and Type Field Description static intSCREENSHOT_THUMBNAIL_WIDTHWidth of a screenshot thumbnail-
Fields inherited from class in.dragonbra.javasteam.handlers.ClientMsgHandler
client
-
-
Constructor Summary
Constructors Constructor Description SteamScreenshots()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JobIDaddScreenshot(ScreenshotDetails details)Adds a screenshot to the user's screenshot library.voidhandleMsg(IPacketMsg packetMsg)Handles a client message.-
Methods inherited from class in.dragonbra.javasteam.handlers.ClientMsgHandler
getClient, isExpectDisconnection, setExpectDisconnection, setup
-
-
-
-
Field Detail
-
SCREENSHOT_THUMBNAIL_WIDTH
public static final int SCREENSHOT_THUMBNAIL_WIDTH
Width of a screenshot thumbnail- See Also:
- Constant Field Values
-
-
Method Detail
-
addScreenshot
public JobID addScreenshot(ScreenshotDetails details)
Adds a screenshot to the user's screenshot library. The screenshot image and thumbnail must already exist on the UFS. Results are returned in aScreenshotAddedCallback.- Parameters:
details- The details of the screenshot.- Returns:
- The Job ID of the request. This can be used to find the appropriate
ScreenshotAddedCallback.
-
handleMsg
public void handleMsg(IPacketMsg packetMsg)
Description copied from class:ClientMsgHandlerHandles a client message. This should not be called directly.- Specified by:
handleMsgin classClientMsgHandler- Parameters:
packetMsg- The packet message that contains the data.
-
-