Skip to content

Instantly share code, notes, and snippets.

@magdamiu
Last active August 8, 2020 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save magdamiu/08ede63c11fa94f7a9deb73a1a47ad30 to your computer and use it in GitHub Desktop.
Save magdamiu/08ede63c11fa94f7a9deb73a1a47ad30 to your computer and use it in GitHub Desktop.
Smile, it’s CameraX! [preview and capture] | Preview - step 3: add PreviewView in a layout
val previewView = findViewById(R.id.preview)
// initialize the Preview object (current use case)
val preview = Preview.Builder().build()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment