PrintManager.Print(String, PrintDocumentAdapter, PrintAttributes) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
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.