onPageCountReady_(pageCount, previewResponseId, fitToPageScaling) {
      if (this.inFlightRequestId_ != previewResponseId) {
        return;  // Ignore old response.
      }
      this.documentInfo_.updatePageCount(pageCount);
      this.pageRanges_ = this.printTicketStore_.pageRange.getPageRanges();
    }
/**
     * Called when the document page count is received from the native layer.
     * Always occurs as a result of a preview request.
     * @param {number} pageCount The document's page count.
     * @param {number} previewResponseId The request ID that corresponds to this
     *     page count.
     * @param {number} fitToPageScaling The scaling required to fit the document
     *     to page (unused).
     * @private
     */
Called when the document page count is received from the native layer.
Always occurs as a result of a preview request.
@param {number} pageCount The document's page count.
@param {number} previewResponseId The request ID that corresponds to this
page count.
@param {number} fitToPageScaling The scaling required to fit the document
to page (unused).
@private
Called when the document page count is received from the native layer . Always occurs as a result of a preview request . @param { number } pageCount The document ' s page count . @param { number } previewResponseId The request ID that corresponds to this page count . @param { number } fitToPageScaling The scaling required to fit the document to page ( unused ) . @private
onPageCountReady_(pageCount, previewResponseId, fitToPageScaling) {
      if (this.inFlightRequestId_ != previewResponseId) {
        return;  
      }
      this.documentInfo_.updatePageCount(pageCount);
      this.pageRanges_ = this.printTicketStore_.pageRange.getPageRanges();
    }
onPageCountReady_ ( pageCount , previewResponseId , fitToPageScaling ) { if ( this . inFlightRequestId_ != previewResponseId ) { return ; } this . documentInfo_ . updatePageCount ( pageCount ) ; this . pageRanges_ = this . printTicketStore_ . pageRange . getPageRanges ( ) ; }
Called when the document page count is received from the native layer.
Called when the document page count is received from the native layer .
// Ignore old response.