Represents a callback API called upon image data obtaining. Sample Code- // Start the LensEngine.
- lensEngine.run();
- // Execute lensEngine.photograph() to take a photograph.
- lensEngine.photograph(new LensEngine.ShutterListener() {
- @Override
- public void clickShutter() {
- // This method is called when the shutter is touched.
- }
- },new LensEngine.PhotographListener() {
- @Override
- public void takenPhotograph(byte[] data) {
- // This method is called when the photographing is complete.
- // The data parameter and the corresponding image data can be obtained here for further processing.
- }
- });
|