Freigeben über


PrinterDiscoverySession.OnRequestCustomPrinterIcon Method

Definition

Called by the system to request the custom icon for a printer.

[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

Parameters

printerId
PrinterId

The printer to icon belongs to.

cancellationSignal
CancellationSignal

Signal used to cancel the request.

callback
CustomPrinterIconCallback

Callback for returning the icon to the system.

Attributes

Remarks

Called by the system to request the custom icon for a printer. Once the icon is available the print services uses CustomPrinterIconCallback#onCustomPrinterIconLoaded to send the icon to the system.

Java documentation for android.printservice.PrinterDiscoverySession.onRequestCustomPrinterIcon(android.print.PrinterId, android.os.CancellationSignal, android.printservice.CustomPrinterIconCallback).

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