public interface CameraManager
CameraManagerListener.onCameraOpen()
and before CameraManagerListener.onCameraReleased()
were invoked.Modifier and Type | Interface and Description |
---|---|
static interface |
CameraManager.FovChangedListener |
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
|
float |
getRenderingCorrectedFov() |
boolean |
isCameraFlashLightEnabled()
Call check the state of the flash light
|
boolean |
isExposurePointOfInterestSupported() |
boolean |
isFocusPointOfInterestSupported() |
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 |
setExposurePointOfInterest(float pointX,
float pointY)
Sets the point where the camera tries to calculate exposure.
|
void |
setFocusMode(CameraSettings.CameraFocusMode focusMode_)
Call to change the focus mode of the camera (once, continuous)
|
void |
setFocusPointOfInterest(float pointX,
float pointY)
Sets the point where the camera tries to focus on.
|
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 |
setRenderingCorrectedFovChangedListener(CameraManager.FovChangedListener listener)
Sets the listener that is invoked when the field of view of the rendered frame changes.
|
void |
setTextureId(int textureId)
Sets the OpenGLES texture id the camera frame should be rendered to.
|
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)IllegalArgumentException
- if the camera position is null.CameraSettings.CameraPosition getCameraPosition()
void setFocusMode(CameraSettings.CameraFocusMode focusMode_)
focusMode_
- Focus mode which should be used (once, continuous)IllegalArgumentException
- if the camera focus mode is null.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()
boolean isFocusPointOfInterestSupported()
void setFocusPointOfInterest(float pointX, float pointY)
CameraSettings.CameraFocusMode#ONCE
and will not work in
other focus modes.isFocusPointOfInterestSupported()
can be used.pointX
- the pixel coordinate in the x axis of the render surface.pointY
- the pixel coordinate in the y axis of the render surface.isFocusPointOfInterestSupported()
,
View.OnTouchListener
boolean isExposurePointOfInterestSupported()
void setExposurePointOfInterest(float pointX, float pointY)
isExposurePointOfInterestSupported()
can be used.pointX
- the pixel coordinate in the x axis of the render surface.pointY
- the pixel coordinate in the y axis of the render surface.isExposurePointOfInterestSupported()
,
View.OnTouchListener
void setTextureId(int textureId)
float getRenderingCorrectedFov()
void setRenderingCorrectedFovChangedListener(CameraManager.FovChangedListener listener)
listener
- the listener that is invoked when the field of view of the rendered frame changes