How can I access preview frames when using camera? Is there a similar function to Android API's onPreviewFrame (byte[] data, Camera camera). I'd like to develop a scanner app like barcode scanner, but scanning other things. So, I need to retrieve preview frames of camera component but don't know hot to do that.