- Take high-resolution pictures with `capturePicture`
- Take high-resolution pictures with `capturePicture`
- Take quick snapshots as a freeze frame of the preview with `captureSnapshot` (similar to Snapchat and Instagram)
- Take quick snapshots as a freeze frame of the preview with `captureSnapshot` (similar to Snapchat and Instagram)
- Control flash, zoom, white balance, exposure correction and more
- Control HDR, flash, zoom, white balance, exposure correction and more
- **Metadata** support for pictures and videos
- **Metadata** support for pictures and videos
- Automatically detected orientation tags
- Automatically detected orientation tags
- Plug in location tags with `setLocation()` API
- Plug in location tags with `setLocation()` API
@ -66,7 +66,7 @@ To use the CameraView engine, simply add a `CameraView` to your layout:
android:layout_height="wrap_content" />
android:layout_height="wrap_content" />
```
```
Make sure you override `onResume`, `onPause` and `onDestroy` in your activity or fragment, and call `CameraView.start()`, `stop()` and `destroy()`.
`CameraView` has lots of XML attributes, so keep reading. Make sure you override `onResume`, `onPause` and `onDestroy` in your activity or fragment, and call `CameraView.start()`, `stop()` and `destroy()`.
```java
```java
@Override
@Override
@ -291,7 +291,8 @@ Most camera parameters can be controlled through XML attributes or linked method
app:cameraCropOutput="false"
app:cameraCropOutput="false"
app:cameraJpegQuality="100"
app:cameraJpegQuality="100"
app:cameraVideoQuality="480p"
app:cameraVideoQuality="480p"
app:cameraWhiteBalance="auto" />
app:cameraWhiteBalance="auto"
app:cameraHdr="off" />
```
```
|XML Attribute|Method|Values|Default Value|
|XML Attribute|Method|Values|Default Value|
@ -304,6 +305,7 @@ Most camera parameters can be controlled through XML attributes or linked method
|[`cameraJpegQuality`](#camerajpegquality)|`setJpegQuality()`|`0 <= n <= 100`|`100`|
|[`cameraJpegQuality`](#camerajpegquality)|`setJpegQuality()`|`0 <= n <= 100`|`100`|