public static final class PrintJobInfo.Builder
extends Object
| java.lang.Object | |
| ↳ | android.print.PrintJobInfo.Builder |
用于创建 PrintJobInfo生成器。
Public constructors |
|
|---|---|
PrintJobInfo.Builder(PrintJobInfo prototype) 构造函数。 |
|
Public methods |
|
|---|---|
PrintJobInfo |
build() 创建一个新的 |
void |
putAdvancedOption(String key, String value) 提供高级(打印机特定)选项。 |
void |
putAdvancedOption(String key, int value) 提供高级(打印机特定)选项。 |
void |
setAttributes(PrintAttributes attributes) 设置打印作业属性。 |
void |
setCopies(int copies) 设置份数。 |
void |
setPages(PageRange[] pages) 设置包含的页面。 |
Inherited methods |
|
|---|---|
java.lang.Object
|
|
PrintJobInfo.Builder (PrintJobInfo prototype)
构造函数。
| Parameters | |
|---|---|
prototype |
PrintJobInfo: Prototype to use as a starting point. Can be null. |
PrintJobInfo build ()
创建一个新的 PrintJobInfo实例。
| Returns | |
|---|---|
PrintJobInfo |
The new instance. |
void putAdvancedOption (String key, String value)
提供高级(打印机特定)选项。
| Parameters | |
|---|---|
key |
String: The option key. |
value |
String: The option value. |
void putAdvancedOption (String key, int value)
提供高级(打印机特定)选项。
| Parameters | |
|---|---|
key |
String: The option key. |
value |
int: The option value. |
void setAttributes (PrintAttributes attributes)
设置打印作业属性。
| Parameters | |
|---|---|
attributes |
PrintAttributes: The attributes. |
void setCopies (int copies)
设置份数。
| Parameters | |
|---|---|
copies |
int: The number of copies. |
void setPages (PageRange[] pages)
设置包含的页面。
| Parameters | |
|---|---|
pages |
PageRange: The included pages. |