Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
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)

Constructor.

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

Public Methods

public PrintJobInfo build ()

Creates a new PrintJobInfo instance.

Returns
  • The new instance.

public void putAdvancedOption ( String key, int value)

Puts an advanced (printer specific) option.

Parameters
key The option key.
value The option value.

public void putAdvancedOption ( String key, String value)

Puts an advanced (printer specific) option.

Parameters
key The option key.
value The option value.

public void setAttributes ( PrintAttributes attributes)

Sets the print job attributes.

Parameters
attributes The attributes.

public void setCopies (int copies)

Sets the number of copies.

Parameters
copies The number of copies.

public void setPages ( PageRange[] pages)

Sets the included pages.

Parameters
pages The included pages.