PrinterDiscoverySession.OnRequestCustomPrinterIcon Methode

Definition

Vom System aufgerufen, um das benutzerdefinierte Symbol für einen Drucker anzufordern.

[Android.Runtime.Register("onRequestCustomPrinterIcon", "(Landroid/print/PrinterId;Landroid/os/CancellationSignal;Landroid/printservice/CustomPrinterIconCallback;)V", "GetOnRequestCustomPrinterIcon_Landroid_print_PrinterId_Landroid_os_CancellationSignal_Landroid_printservice_CustomPrinterIconCallback_Handler", ApiSince=24)]
public virtual void OnRequestCustomPrinterIcon(Android.Print.PrinterId printerId, Android.OS.CancellationSignal cancellationSignal, Android.PrintServices.CustomPrinterIconCallback callback);
[<Android.Runtime.Register("onRequestCustomPrinterIcon", "(Landroid/print/PrinterId;Landroid/os/CancellationSignal;Landroid/printservice/CustomPrinterIconCallback;)V", "GetOnRequestCustomPrinterIcon_Landroid_print_PrinterId_Landroid_os_CancellationSignal_Landroid_printservice_CustomPrinterIconCallback_Handler", ApiSince=24)>]
abstract member OnRequestCustomPrinterIcon : Android.Print.PrinterId * Android.OS.CancellationSignal * Android.PrintServices.CustomPrinterIconCallback -> unit
override this.OnRequestCustomPrinterIcon : Android.Print.PrinterId * Android.OS.CancellationSignal * Android.PrintServices.CustomPrinterIconCallback -> unit

Parameter

printerId
PrinterId

Der zu verwendende Drucker gehört zu dem Symbol.

cancellationSignal
CancellationSignal

Signal, das zum Abbrechen der Anforderung verwendet wird.

callback
CustomPrinterIconCallback

Rückruf zum Zurückgeben des Symbols an das System.

Attribute

Hinweise

Vom System aufgerufen, um das benutzerdefinierte Symbol für einen Drucker anzufordern. Sobald das Symbol verfügbar ist, werden die Druckdienste verwendet CustomPrinterIconCallback#onCustomPrinterIconLoaded , um das Symbol an das System zu senden.

Java Dokumentation für android.printservice.PrinterDiscoverySession.onRequestCustomPrinterIcon(android.print.PrinterId, android.os.CancellationSignal, android.printservice.CustomPrinterIconCallback).

Teile dieser Seite sind Änderungen auf der Grundlage von Arbeiten, die von der Android Open Source Project erstellt und gemeinsam verwendet und gemäß den in der 2.5 Attribution License beschriebenen Begriffen verwendet werden.

Gilt für: