PrinterDiscoverySession.OnRequestCustomPrinterIcon 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.
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.
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.