public interface CameraManager
Modifier and Type | Method and Description |
---|---|
void |
disableCameraFlashLight()
Call to turn off the device flash light
|
void |
enableCameraFlashLight()
Call to turn on the device flash light
|
CameraSettings.CameraPosition |
getCameraPosition()
Call to get the current camera position
|
float |
getCurrentZoomLevel()
Call to get the currently set zoom level
|
CameraSettings.CameraFocusMode |
getFocusMode()
Call to get the currently set focus mode
|
CameraManagerListener |
getListener()
Returns the currently registered listener object.
|
float |
getManualFocusDistance()
Get the camera focus distance in %.
0 = Shortest distance from frontmost surface of the lens that can be brought into sharp focus. 1 = Infinity Focus. |
float |
getMaxZoomLevel()
Call to check the maximum zoom level, should be called before setting the zoom level
|
boolean |
isCameraFlashLightEnabled()
Call check the state of the flash light
|
boolean |
isManualFocusAvailable()
Checks if the currently active camera is supporting setting the focus distance manually.
|
void |
setCameraPosition(CameraSettings.CameraPosition cameraPosition_)
Call to change which camera should be used (front, back)
|
void |
setFocusMode(CameraSettings.CameraFocusMode focusMode_)
Call to change the focus mode of the camera (once, continuous)
|
void |
setListener(CameraManagerListener listener_)
Call to set a listener object.
|
void |
setManualFocusDistance(float focusDistance)
Set the camera focus distance.
0 = Shortest distance from frontmost surface of the lens that can be brought into sharp focus. 1 = Infinity Focus. If setting the focus distance is not supported by the camera this value will be internally set to 0. |
void |
setTextureId(int textureId)
For internal use only.
|
void |
setZoomLevel(float zoomLevel_)
Call to set the zoom in or zoom out, call getMaxZoomLevel first to get the maximum possible value
|
void enableCameraFlashLight()
void disableCameraFlashLight()
boolean isCameraFlashLightEnabled()
void setCameraPosition(CameraSettings.CameraPosition cameraPosition_)
cameraPosition_
- Camera which should be used (front, back)CameraSettings.CameraPosition getCameraPosition()
void setFocusMode(CameraSettings.CameraFocusMode focusMode_)
focusMode_
- Focus mode which should be used (once, continuous)CameraSettings.CameraFocusMode getFocusMode()
boolean isManualFocusAvailable()
void setManualFocusDistance(float focusDistance)
focusDistance
- focus distance.float getManualFocusDistance()
void setZoomLevel(float zoomLevel_)
zoomLevel_
- Zoom level to be setfloat getCurrentZoomLevel()
float getMaxZoomLevel()
void setListener(CameraManagerListener listener_)
listener_
- The CameraManager listener. Providing null will unset the previous listener.CameraManagerListener getListener()
void setTextureId(int textureId)