Skip to content

labelwriter


labelwriter / core/src / withDetectedMedia

Function: withDetectedMedia()

withDetectedMedia(status, sku): PrinterStatus

Decorate a parsed status response with detectedMedia derived from a freshly-fetched SKU dump. Used by the driver after getMedia() returns, so subsequent print() / createPreview() calls have something to fall back to.

Parameters

status

PrinterStatus

sku

SkuInfo

Returns

PrinterStatus