Builder

class Builder
kotlin.Any
   ↳ androidx.camera.core.CameraSelector.Builder

Builder for a CameraSelector.

Summary

Public constructors

Public methods

CameraSelector

Builds the CameraSelector.

CameraSelector.Builder
requireLensFacing(lensFacing: Int)

Requires a camera with the specified lens facing.

Public constructors

<init>

Builder()

Public methods

build

@NonNull fun build(): CameraSelector

Builds the CameraSelector.

requireLensFacing

@NonNull fun requireLensFacing(lensFacing: Int): CameraSelector.Builder

Requires a camera with the specified lens facing.

If lens facing is already set, this will add extra requirement for lens facing instead of replacing the previous setting.