CameraView

abstract class CameraView<T : FrameLayout>(    activity: AppCompatActivity,     viewStub: ViewStub,     @LayoutRes resId: Int?)

Constructors

Link copied to clipboard
fun CameraView(    activity: AppCompatActivity,     viewStub: ViewStub,     @LayoutRes resId: Int?)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open fun attach(    cameraState: Int,     flashActive: Boolean,     autoFocusActive: Boolean)
Link copied to clipboard
open fun detach()
Link copied to clipboard
abstract fun onResume()
Link copied to clipboard
open fun playBeepSound()
Link copied to clipboard
abstract fun startCameraPreview()
Link copied to clipboard
abstract fun stopCameraPreview()
Link copied to clipboard
abstract fun toggleCamera(requestedCameraId: Int)
Link copied to clipboard
abstract fun updateFlashSetting(flashActive: Boolean)
Link copied to clipboard
abstract fun updateFocusModeSetting(autoFocusActive: Boolean)
Link copied to clipboard
open fun updateWorkflowState(state: WorkflowState)

Properties

Link copied to clipboard
var barcodeScannedCallback: (String?) -> Unit? = null
Link copied to clipboard
var onOverlayClickListener: () -> Unit? = null

Inheritors

Link copied to clipboard