Class CameraManager
- java.lang.Object
-
- com.epson.moverio.hardware.camera.CameraManager
-
public class CameraManager extends java.lang.Object
This class controls the connection/disconnection with the camera equipped to the Moverio. Gets CameraDevice instances when connected to the camera.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description CameraManager(android.content.Context context)
This is a CameraManager constructor.CameraManager(android.content.Context context, PermissionGrantResultCallback callback)
This is a CameraManager constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close(CameraDevice device)
End the connection with Moverio camera.boolean
isCameraManagerSupported()
Check if the MOVERIO connected to the host device supports CameraManager functions.CameraDevice
open(CaptureStateCallback2 stateCallback, CaptureDataCallback dataCallback, android.view.SurfaceHolder holder)
Connect with Moverio camera.void
release()
Release resources for using Moverio camera.
-
-
-
Constructor Detail
-
CameraManager
public CameraManager(android.content.Context context)
This is a CameraManager constructor.- Parameters:
context
- Activity context- Since:
- 1.0.0
-
CameraManager
public CameraManager(android.content.Context context, PermissionGrantResultCallback callback)
This is a CameraManager constructor.- Parameters:
context
- Activity contextcallback
- Callback of permission grant result- Since:
- 1.2.0
-
-
Method Detail
-
open
public CameraDevice open(CaptureStateCallback2 stateCallback, CaptureDataCallback dataCallback, android.view.SurfaceHolder holder) throws java.io.IOException
Connect with Moverio camera. Connecting with Moverio camera allows you to perform the various control tasks.- Parameters:
stateCallback
- Capture state callbackdataCallback
- Capture data callbackholder
- Surface holder for preview- Returns:
- CameraDevice instance
- Throws:
java.io.IOException
- Exceptions such as disconnected Moverio- Since:
- 1.1.0
-
close
public void close(CameraDevice device)
End the connection with Moverio camera.- Parameters:
device
- Camera device- Since:
- 1.0.0
-
release
public void release()
Release resources for using Moverio camera. If you finish using camera, you must execute CameraManager#release.- Since:
- 1.0.2
-
isCameraManagerSupported
public boolean isCameraManagerSupported()
Check if the MOVERIO connected to the host device supports CameraManager functions. Returns supports CameraManager when acquiring true is supported and false when it is not supported. Returns false even if MOVERIO is not connected to the host device.- Returns:
- true: success, false: fail
- Since:
- 1.1.0
-
-