completeCustomTouchCalibration method

void completeCustomTouchCalibration(
  1. TouchCalibrationPairQuad pairs,
  2. Bounds bounds
)

Sets the touch calibration pairs for a display. These |pairs| would be used to calibrate the touch screen for display with |id| called in startCustomTouchCalibration(). Always call |startCustomTouchCalibration| before calling this method. If another touch calibration is already in progress this will throw an error. |pairs|: The pairs of point used to calibrate the display. |bounds|: Bounds of the display when the touch calibration was performed. |bounds.left| and |bounds.top| values are ignored.

Implementation

void completeCustomTouchCalibration(
  TouchCalibrationPairQuad pairs,
  Bounds bounds,
) {
  $js.chrome.system.display.completeCustomTouchCalibration(
    pairs.toJS,
    bounds.toJS,
  );
}