Udostępnij za pośrednictwem


PrinterDiscoverySession.OnValidatePrinters(IList<PrinterId>) Method

Definition

Callback asking you to validate that the given printers are valid, that is they exist.

[Android.Runtime.Register("onValidatePrinters", "(Ljava/util/List;)V", "GetOnValidatePrinters_Ljava_util_List_Handler")]
public abstract void OnValidatePrinters (System.Collections.Generic.IList<Android.Print.PrinterId> printerIds);
[<Android.Runtime.Register("onValidatePrinters", "(Ljava/util/List;)V", "GetOnValidatePrinters_Ljava_util_List_Handler")>]
abstract member OnValidatePrinters : System.Collections.Generic.IList<Android.Print.PrinterId> -> unit

Parameters

printerIds
IList<PrinterId>

The printers to validate.

Attributes

Remarks

Callback asking you to validate that the given printers are valid, that is they exist. You are responsible for checking whether these printers exist and for the ones that do exist notify the system via calling #addPrinters(List).

<strong>Note: </strong> You are <strong>not required</strong> to provide the printer capabilities when updating the printers that do exist.

Java documentation for android.printservice.PrinterDiscoverySession.onValidatePrinters(java.util.List<android.print.PrinterId>).

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