class Camera
Complex Camera Wrapper, for simple Camera use
interface AutoFocusCallback |
|
class CameraState
Current Camera state object |
|
interface OnStateChangeListener
Camera state change Interface |
|
static abstract class PictureCallback : PictureCallback
Abstract picture callback |
|
class Size
Size model |
synchronized fun getCameraAngleCorrection(): int |
|
fun getCameraFacing(): CameraFacing
Get the current camera facing. |
|
synchronized fun getCameraOrientation(): int
Get camera cameraOrientation |
|
fun getCurrentExifOrientation(): int |
|
synchronized fun getFlashMode(): FlashMode
Get the current FlashMode |
|
static synchronized fun getInstance(): Camera
Get a singleton Camera Instance. |
|
synchronized fun getPreviewSize(): Camera.Size
Get Preview Size |
|
fun getState(): Camera.CameraState
Get the State of the current Camera getSettingsModel. This is a singleton |
|
synchronized fun hasSceneMode(mode: java.lang.String): boolean
Check if the current state has scene mode is available. |
|
static synchronized fun isAvailable(): boolean
Check if min. 1 Camera is available. |
|
fun isFront(): boolean
Check if Camera is Front Camera |
|
fun isPreviewFlipped(): boolean |
|
fun setAutoFocusCallback(autoFocusCallback: Camera.AutoFocusCallback): void |
|
synchronized fun setCameraFacing(cameraFacing: CameraFacing): CameraFacing
Try to set a Camera Facing. |
|
synchronized fun setFlashMode(mode: FlashMode): FlashMode
Try to set a flash mode and take a fallback mode if not supported by current Camera. |
|
synchronized fun setFocus(focusAreas: java.util.List<Area>): void
* Set Camera FOCUS. |
|
fun setLocationProvider(locationProvider: GPSLocationProvider): void |
|
fun setOnStateChangeListener(onStateChangeListener: Camera.OnStateChangeListener): void
Set a listener to catch any getSettingsModel state changes. |
|
synchronized fun setSceneMode(mode: SceneMode): SceneMode
Try to set a Scene mode and take a fallback mode if not supported by current Camera. |
|
synchronized fun setSurface(surfaceTexture: SurfaceTexture): void
Set Preview Texture |
|
synchronized fun startPreview(): void
Start the Camera Preview, this is async and will begin if the surface are set. |
|
synchronized fun stopPreview(release: boolean): void
Stop the Camera Preview and releaseGlContext the surface. |
|
fun takePicture(callback: CameraView.CaptureCallback, outputPath: java.lang.String): void
* Take a Picture |
previewCallback |