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!