public class FlashlightCameraCapturer
extends Camera1Capturer
Constructor and Description |
---|
FlashlightCameraCapturer(java.lang.String cameraName,
CameraEventsHandler eventsHandler,
boolean captureToTexture) |
Modifier and Type | Method and Description |
---|---|
protected void |
createCameraSession(CameraSession.CreateSessionCallback createSessionCallback,
CameraSession.Events events,
android.content.Context applicationContext,
SurfaceTextureHelper surfaceTextureHelper,
java.lang.String cameraName,
int width,
int height,
int framerate) |
boolean |
isFlashlightSupport() |
boolean |
turnOffFlashlight() |
boolean |
turnOnFlashlight() |
public FlashlightCameraCapturer(java.lang.String cameraName, CameraEventsHandler eventsHandler, boolean captureToTexture)
protected void createCameraSession(CameraSession.CreateSessionCallback createSessionCallback, CameraSession.Events events, android.content.Context applicationContext, SurfaceTextureHelper surfaceTextureHelper, java.lang.String cameraName, int width, int height, int framerate)
public boolean turnOnFlashlight()
public boolean isFlashlightSupport()
public boolean turnOffFlashlight()