public class CameraController extends Object
CameraController
provides methods for camera and flash related operation and status getter.Constructor and Description |
---|
CameraController(CameraInterface cameraInterface) |
Modifier and Type | Method and Description |
---|---|
int |
currentCamera()
Gets current camera id.
|
boolean |
isflashOpening()
Gets if flashlight is opening.
|
boolean |
switchCamera()
Switch to another camera.
|
boolean |
toggleFlash()
Toggle flash light.
|
public int currentCamera()
StreamConfig.CAMERA_TYPE
) or -1 when camera is not available.public boolean isflashOpening()
public boolean switchCamera()
public boolean toggleFlash()