pull/497/head
Mattia Iavarone 6 years ago
parent 4d6c7fbf2d
commit c2af333aea
  1. 7
      docs/_posts/2018-12-20-changelog.md
  2. 15
      docs/_posts/2018-12-20-more-features.md
  3. 2
      docs/_posts/2018-12-20-previews.md

@ -8,6 +8,10 @@ order: 3
New versions are released through GitHub, so the reference page is the [GitHub Releases](https://github.com/natario1/CameraView/releases) page. New versions are released through GitHub, so the reference page is the [GitHub Releases](https://github.com/natario1/CameraView/releases) page.
### v2.0.0-*** (to be released)
- New: `cameraUseDeviceOrientation` XML attribute and `setUseDeviceOrientation()` method to disable considering the device orientation for outputs. ([#497][497])
### v2.0.0-beta06 ### v2.0.0-beta06
- New: Full featured Camera2 integration! Use `cameraExperimental="true"` and `cameraEngine="camera2"` to test this out. ([#490][490]) - New: Full featured Camera2 integration! Use `cameraExperimental="true"` and `cameraEngine="camera2"` to test this out. ([#490][490])
@ -64,4 +68,5 @@ This is the first beta release. For changes with respect to v1, please take a lo
[477]: https://github.com/natario1/CameraView/pull/477 [477]: https://github.com/natario1/CameraView/pull/477
[482]: https://github.com/natario1/CameraView/pull/482 [482]: https://github.com/natario1/CameraView/pull/482
[484]: https://github.com/natario1/CameraView/pull/484 [484]: https://github.com/natario1/CameraView/pull/484
[490]: https://github.com/natario1/CameraView/pull/490 [490]: https://github.com/natario1/CameraView/pull/490
[497]: https://github.com/natario1/CameraView/pull/497

@ -16,7 +16,8 @@ disqus: 1
app:cameraPlaySounds="true|false" app:cameraPlaySounds="true|false"
app:cameraGrid="off|draw3x3|draw4x4|drawPhi" app:cameraGrid="off|draw3x3|draw4x4|drawPhi"
app:cameraGridColor="@color/black" app:cameraGridColor="@color/black"
app:cameraAutoFocusResetDelay="0"/> app:cameraAutoFocusResetDelay="0"
app:cameraUseDeviceOrientation="true"/>
``` ```
##### cameraPlaySounds ##### cameraPlaySounds
@ -89,6 +90,18 @@ cameraView.setCameraAutoFocusResetDelay(-1); // NO reset
cameraView.setCameraAutoFocusResetDelay(Long.MAX_VALUE); // NO reset cameraView.setCameraAutoFocusResetDelay(Long.MAX_VALUE); // NO reset
``` ```
##### cameraUseDeviceOrientation
Controls whether we should consider the device orientation for picture and video outputs.
This defaults to true, but can be set to false for specific usages, where you don't want the
output to be rotated based on the device rotation at the moment of capturing.
Defaults to true.
```java
cameraView.setUseDeviceOrientation(true); // rotate media
cameraView.setUseDeviceOrientation(false); // don't
```
### UI Orientation ### UI Orientation
Within a Camera app, it's common to rotate buttons and other UI elements as the device is tilted around. Within a Camera app, it's common to rotate buttons and other UI elements as the device is tilted around.

@ -64,4 +64,6 @@ The engine method should only be called when the `CameraView` is closed. Otherwi
|Method|Description| |Method|Description|
|------|-----------| |------|-----------|
|`setPreview(Preview)`|Sets the preview implementation.| |`setPreview(Preview)`|Sets the preview implementation.|
|`getPreview()`|Gets the current preview implementation.|
|`setEngine(Engine)`|Sets the engine implementation.| |`setEngine(Engine)`|Sets the engine implementation.|
|`getEngine()`|Gets the current engine implementation.|

Loading…
Cancel
Save