public class PrintRequest extends BaseRequest
Constructor and Description |
---|
PrintRequest(android.graphics.Bitmap image)
Constructor
Create a PrintRequest to print a given image
|
PrintRequest(android.graphics.Bitmap image,
java.lang.String printRequestId,
java.lang.String printDeviceId)
Constructor
Create a PrintRequest to print a given image
|
PrintRequest(java.util.List<java.lang.String> text)
Constructor
Create a PrintRequest to print a given image
|
PrintRequest(java.util.List<java.lang.String> text,
java.lang.String printRequestId,
java.lang.String printDeviceId)
Constructor
Create a PrintRequest to print an array of strings to print
|
PrintRequest(java.lang.String imageUrl)
Constructor
Create a PrintRequest to print a given image
|
PrintRequest(java.lang.String imageUrl,
java.lang.String printRequestId,
java.lang.String printDeviceId)
Constructor
Create a PrintRequest to print an image at a given URL
|
Modifier and Type | Method and Description |
---|---|
java.util.List<android.graphics.Bitmap> |
getImages()
Get the field value
|
java.util.List<java.lang.String> |
getImageURLs()
Get the field value
|
java.lang.String |
getPrintDeviceId()
Get the field value
|
java.lang.String |
getPrintRequestId()
Get the field value
|
java.util.List<java.lang.String> |
getText()
Get the field value
|
void |
setPrintDeviceId(java.lang.String printDeviceId)
Set the field value
|
void |
setPrintRequestId(java.lang.String printRequestId)
Set the field value
|
public PrintRequest(android.graphics.Bitmap image, java.lang.String printRequestId, java.lang.String printDeviceId)
image
- Image to printprintRequestId
- identifier to give to the print job, so it can be later queriedprintDeviceId
- identifier to specify printer to usepublic PrintRequest(java.lang.String imageUrl, java.lang.String printRequestId, java.lang.String printDeviceId)
imageUrl
- URL to the image to printprintRequestId
- identifier to give to the print job, so it can be later queriedprintDeviceId
- identifier to specify printer to usepublic PrintRequest(java.util.List<java.lang.String> text, java.lang.String printRequestId, java.lang.String printDeviceId)
text
- Array of strings to be printedprintRequestId
- identifier to give to the print job, so it can be later queriedprintDeviceId
- identifier to specify printer to usepublic PrintRequest(android.graphics.Bitmap image)
image
- Image to printpublic PrintRequest(java.lang.String imageUrl)
imageUrl
- URL to the image to printpublic PrintRequest(java.util.List<java.lang.String> text)
text
- Array of strings to be printedpublic java.util.List<android.graphics.Bitmap> getImages()
public java.util.List<java.lang.String> getImageURLs()
public java.util.List<java.lang.String> getText()
public java.lang.String getPrintRequestId()
public java.lang.String getPrintDeviceId()
public void setPrintRequestId(java.lang.String printRequestId)
printRequestId
- id of print jobpublic void setPrintDeviceId(java.lang.String printDeviceId)
printDeviceId
- id of the printer