Camera library based on Camera2 API. It should be used together with CamEx2 class.
Permissions:
android.permission.CAMERA
Events:
PictureTaken (Data() As Byte) CameraState (Open As Boolean) CameraClosed SurfaceReady SessionConfigured (Success As Boolean) PreviewCaptureComplete (CaptureResult As Object) PreviewTaken (Image As Object) CaptureComplete (CaptureResult As Object)
Creates the surface view (TextureView) that will be used to display the preview frames. You need to add it to the layout and wait for the SurfaceReady event.
CreateVideoRequestBuilderAsObject
FindCameraId (FrontAsBoolean) AsString
Returns the relevant camera id. Returns an empty string if not found.
GetCameraCharacteristics (IdAsString) AsObject
Returns an object that holds the camera supported features.
GetSupportedCaptureSizes (IdAsString) AsList
Returns a list with the supported capture sizes.
GetSupportedPreviewSizes (IdAsString) AsList
Returns a list with the supported preview sizes.
GetSupportedVideoSizes (IdAsString) AsList
Initialize (EventNameAsString)
IsCameraOpenAsBoolean [read only]
OpenCamera (IdAsString)
Opens the camera. The CameraState event will be raised.
SetRepeatingRequest (BuilderAsObject) AsObject
Sets a repeating request (preview request). Clears any previous repeating request. Returns the CaptureRequest object.