PrinterInfo.Builder.SetHasCustomPrinterIcon(Boolean) 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.
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.