PrintManager.Print(String, PrintDocumentAdapter, PrintAttributes) Method

Definition

Creates a print job for printing a PrintDocumentAdapter with default print attributes.

[Android.Runtime.Register("print", "(Ljava/lang/String;Landroid/print/PrintDocumentAdapter;Landroid/print/PrintAttributes;)Landroid/print/PrintJob;", "")]
public Android.Print.PrintJob Print (string printJobName, Android.Print.PrintDocumentAdapter documentAdapter, Android.Print.PrintAttributes? attributes);
[<Android.Runtime.Register("print", "(Ljava/lang/String;Landroid/print/PrintDocumentAdapter;Landroid/print/PrintAttributes;)Landroid/print/PrintJob;", "")>]
member this.Print : string * Android.Print.PrintDocumentAdapter * Android.Print.PrintAttributes -> Android.Print.PrintJob

Parameters

printJobName
String

A name for the new print job which is shown to the user.

documentAdapter
PrintDocumentAdapter

An adapter that emits the document to print.

attributes
PrintAttributes

The default print job attributes or <code>null</code>.

Returns

PrintJob

The created print job on success or null on failure.

Attributes

Exceptions

If not called from an Activity.

If the print job name is empty or the document adapter is null.

Remarks

Java documentation for android.print.PrintManager.print(java.lang.String, android.print.PrintDocumentAdapter, android.print.PrintAttributes).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also