onGetPrintersRequested property

EventStream<void Function(List<PrinterInfo>)> get onGetPrintersRequested

Event fired when print manager requests printers provided by extensions.

Implementation

EventStream<void Function(List<PrinterInfo>)> get onGetPrintersRequested =>
    $js.chrome.printerProvider.onGetPrintersRequested
        .asStream(($c) => ($js.PrintersCallback resultCallback) {
              return $c((List<PrinterInfo> printerInfo) {
                resultCallback.callAsFunction(
                    null, printerInfo.toJSArray((e) => e.toJS));
              });
            }.toJS);