public static class ScreenCaptureReply.Builder extends Object
ScreenCaptureReply.Builder builder = ScreenCaptureReply.builder();
builder.setBlank(true);
builder.setCrashed(true);
ScreenCaptureReply reply = builder.build();
| Constructor and Description |
|---|
ScreenCaptureReply.Builder() |
| Modifier and Type | Method and Description |
|---|---|
ScreenCaptureReply |
build()
Returns a newly created
ScreenCaptureReply based on the contents of the builder. |
ScreenCaptureReply.Builder |
setBlank(boolean blank)
Specify if the
ScreenCaptureReply should evaluate to a blank screen capture. |
ScreenCaptureReply.Builder |
setColorResult(List<ColorResult> colorResults)
Specify the color results of the screen capture.
|
ScreenCaptureReply.Builder |
setCrashed(boolean crashed)
Specify if the
ScreenCaptureReply should evaluate to a crash. |
ScreenCaptureReply.Builder |
setMD5(String md5)
Specify the hash sum of the capture.
|
ScreenCaptureReply.Builder |
setPNG(byte[] data)
Specify the byte array of png of the screen capture.
|
public ScreenCaptureReply.Builder setMD5(String md5)
md5 - the MD5 hash sum of the datapublic ScreenCaptureReply.Builder setPNG(byte[] data)
data - a byte arraypublic ScreenCaptureReply.Builder setColorResult(List<ColorResult> colorResults)
colorResults - the color resultspublic ScreenCaptureReply.Builder setBlank(boolean blank)
ScreenCaptureReply should evaluate to a blank screen capture.blank - true if the reply is a blank screen capture, false otherwisepublic ScreenCaptureReply.Builder setCrashed(boolean crashed)
ScreenCaptureReply should evaluate to a crash.crashed - true if the reply is a crash, false otherwisepublic ScreenCaptureReply build()
ScreenCaptureReply based on the contents of the builder.Copyright © 2012. All Rights Reserved.