Share via


PrinterDiscoverySession.AddPrinters(IList<PrinterInfo>) Method

Definition

Adds discovered printers.

[Android.Runtime.Register("addPrinters", "(Ljava/util/List;)V", "")]
public void AddPrinters (System.Collections.Generic.IList<Android.Print.PrinterInfo> printers);
[<Android.Runtime.Register("addPrinters", "(Ljava/util/List;)V", "")>]
member this.AddPrinters : System.Collections.Generic.IList<Android.Print.PrinterInfo> -> unit

Parameters

printers
IList<PrinterInfo>

The printers to add.

Attributes

Remarks

Adds discovered printers. Adding an already added printer updates it. Removed printers can be added again. You can call this method multiple times during the life of this session. Duplicates will be ignored.

<strong>Note: </strong> Calls to this method after the session is destroyed, that is after the #onDestroy() callback, will be ignored.

Java documentation for android.printservice.PrinterDiscoverySession.addPrinters(java.util.List<android.print.PrinterInfo>).

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