google / google/jetpack-camera-app

Preview.Builder() .setTargetRotation(rotation)" does not work

Open
#371 2 comments 0 reactions 1 assignee Claimed by @temcguir View on GitHub
question
Dominant language
Kotlin
Stars
341
Forks
71
Avg merge
4d 17h
Merged PRs (30d)
7

Description

``` Kotlin
cameraPreviewUseCase =
Preview.Builder().setTargetRotation(Surface.ROTATION_90).build().apply {
setSurfaceProvider { newSurfaceRequest ->
onSurfaceRequested(newSurfaceRequest)
}
}
```
It works when i use AndroidView-> PreviewView

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.