The barcode-reader sample comes with CameraSource class. However, com.google.android.gms.vision
package also contains a similar implementation of CameraSource. The sample class has additional methods (e.g. setFocusMode(), setFlashMode()). If these methods are not used then it seems that the sample custom class can be replaced with com.google.android.gms.vision.CameraSource
. I tried it and the sample works fine.
Does anyone know why the sample provides its own implementation of CameraSource?