Most visited

Recently visited

Added in API level 19

PrintJobInfo.Builder

public static final class PrintJobInfo.Builder
extends Object

java.lang.Object
    android.print.PrintJobInfo.Builder


用于创建 PrintJobInfo生成器。

摘要(Summary)

Public constructors

PrintJobInfo.Builder(PrintJobInfo prototype)

构造函数。

公共方法(Public methods)

PrintJobInfo build()

创建一个新的 PrintJobInfo实例。

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)

From class java.lang.Object

Public constructors

PrintJobInfo.Builder

Added in API level 19
PrintJobInfo.Builder (PrintJobInfo prototype)

构造函数。

参数(Parameters)
prototype PrintJobInfo: Prototype to use as a starting point. Can be null.

公共方法(Public methods)

build

Added in API level 19
PrintJobInfo build ()

创建一个新的 PrintJobInfo实例。

返回(Returns)
PrintJobInfo The new instance.

putAdvancedOption

Added in API level 19
void putAdvancedOption (String key, 
                String value)

提供高级(打印机特定)选项。

参数(Parameters)
key String: The option key.
value String: The option value.

putAdvancedOption

Added in API level 19
void putAdvancedOption (String key, 
                int value)

提供高级(打印机特定)选项。

参数(Parameters)
key String: The option key.
value int: The option value.

setAttributes

Added in API level 19
void setAttributes (PrintAttributes attributes)

设置打印作业属性。

参数(Parameters)
attributes PrintAttributes: The attributes.

setCopies

Added in API level 19
void setCopies (int copies)

设置份数。

参数(Parameters)
copies int: The number of copies.

setPages

Added in API level 19
void setPages (PageRange[] pages)

设置包含的页面。

参数(Parameters)
pages PageRange: The included pages.

Hooray!