Code example for Camera.PreviewCallback

Methods: onPreviewFrame

0
        } 
    } 
 
    public void onPreviewFrame(byte[] data, Camera camera) {
        if (callback!=null) {
            callback.onPreviewFrame(data, camera);
        } 
    } 
 
    public void startPreview() { 
        if (cam!=null) {
            cam.startPreview();
        } 
    } 
} 
Contextual code suggestions in your IDE  Get Codota for Java