/*
 * Copyright (c) 2015. Ncomz. All Rights Reserved
 */

package com.google.zxing.client.android;

import com.google.zxing.ResultPoint;
import com.google.zxing.ResultPointCallback;

final class ViewfinderResultPointCallback implements ResultPointCallback {

  private final ViewfinderView viewfinderView;

  ViewfinderResultPointCallback(ViewfinderView viewfinderView) {

    this.viewfinderView = viewfinderView;
  }

  @Override public void foundPossibleResultPoint(ResultPoint point) {

    viewfinderView.addPossibleResultPoint(point);
  }
}
