to top
Android APIs
public static final class

PrintJobInfo.Builder

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

Class Overview

Builder for creating a PrintJobInfo.

Summary

Public Constructors
PrintJobInfo.Builder(PrintJobInfo prototype)
Constructor.
Public Methods
PrintJobInfo build()
Creates a new PrintJobInfo instance.
void putAdvancedOption(String key, int value)
Puts an advanced (printer specific) option.
void putAdvancedOption(String key, String value)
Puts an advanced (printer specific) option.
void setAttributes(PrintAttributes attributes)
Sets the print job attributes.
void setCopies(int copies)
Sets the number of copies.
void setPages(PageRange[] pages)
Sets the included pages.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public PrintJobInfo.Builder (PrintJobInfo prototype)

Added in API level 19

Constructor.

Parameters
prototype Prototype to use as a starting point. Can be null.

Public Methods

public PrintJobInfo build ()

Added in API level 19

Creates a new PrintJobInfo instance.

Returns
  • The new instance.

public void putAdvancedOption (String key, int value)

Added in API level 19

Puts an advanced (printer specific) option.

Parameters
key The option key.
value The option value.

public void putAdvancedOption (String key, String value)

Added in API level 19

Puts an advanced (printer specific) option.

Parameters
key The option key.
value The option value.

public void setAttributes (PrintAttributes attributes)

Added in API level 19

Sets the print job attributes.

Parameters
attributes The attributes.

public void setCopies (int copies)

Added in API level 19

Sets the number of copies.

Parameters
copies The number of copies.

public void setPages (PageRange[] pages)

Added in API level 19

Sets the included pages.

Parameters
pages The included pages.