Dil

PrinterInfo.Builder.SetHasCustomPrinterIcon(Boolean) Method

Definition

Declares that the print service can load a custom per printer's icon.

[Android.Runtime.Register("setHasCustomPrinterIcon", "(Z)Landroid/print/PrinterInfo$Builder;", "", ApiSince=24)]
public Android.Print.PrinterInfo.Builder SetHasCustomPrinterIcon(bool hasCustomPrinterIcon);
[<Android.Runtime.Register("setHasCustomPrinterIcon", "(Z)Landroid/print/PrinterInfo$Builder;", "", ApiSince=24)>]
member this.SetHasCustomPrinterIcon : bool -> Android.Print.PrinterInfo.Builder

Parameters

hasCustomPrinterIcon
Boolean

If the printer has a custom icon or not.

Returns

This builder. This value cannot be null.

Attributes

Remarks

Declares that the print service can load a custom per printer's icon. If both PrinterInfo.Builder.setIconResourceId and a custom icon are set the resource icon is shown while the custom icon loads but then the custom icon is used. If PrinterInfo.Builder.setIconResourceId is not set the printer's service's icon is shown while loading.

The icon is requested asynchronously and only when needed via PrinterDiscoverySession.onRequestCustomPrinterIcon(PrinterId, CancellationSignal, CustomPrinterIconCallback).

Android reference for android.print.PrinterInfo.Builder.setHasCustomPrinterIcon.

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