Added in API level 24
CustomPrinterIconCallback
class CustomPrinterIconCallback
| kotlin.Any | |
| ↳ | android.printservice.CustomPrinterIconCallback |
Callback for PrinterDiscoverySession.onRequestCustomPrinterIcon.
Summary
| Public methods | |
|---|---|
| Boolean |
onCustomPrinterIconLoaded(icon: Icon?)Provide a new icon for a printer. |
Public methods
onCustomPrinterIconLoaded
Added in API level 24
fun onCustomPrinterIconLoaded(icon: Icon?): Boolean
Provide a new icon for a printer. Can be called more than once to update the icon.
| Parameters | |
|---|---|
icon |
Icon?: The new icon for the printer or null to unset the current icon |
| Return | |
|---|---|
Boolean |
true iff the icon could be updated |