Camera2Session

tee3.webrtc

## 类 Camera2Session

- java.lang.Object
- - tee3.webrtc.Camera2Session

-     public class Camera2Session
      extends java.lang.Object

- - ### 嵌套类概要

    嵌套类
    限定符和类型 | 类和说明
    --- | ---
    `static interface` | `tee3.webrtc.CameraSession.CreateSessionCallback`
    `static interface` | `tee3.webrtc.CameraSession.Events`
    `static class` | `tee3.webrtc.CameraSession.FailureType`

  - ### 方法概要

    所有方法 静态方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `static void` | `create(tee3.webrtc.CameraSession.CreateSessionCallback callback, tee3.webrtc.CameraSession.Events events, android.content.Context applicationContext, android.hardware.camera2.CameraManager cameraManager, SurfaceTextureHelper surfaceTextureHelper, java.lang.String cameraId, int width, int height, int framerate)`
    `static Camera2Session` | `getInstance()`
    `float` | `getMaxZoom()`
    `float` | `getZoom()`
    `java.lang.Boolean` | `isFlashAvailable()`
    `int` | `setCameraZoom(float zoom)`
    `void` | `stop()` Stops the capture.
    `int` | `turnOffFlash()`
    `int` | `turnOnFlash()`

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 方法详细资料

    - #### create

          public static void create(tee3.webrtc.CameraSession.CreateSessionCallback callback,
                                    tee3.webrtc.CameraSession.Events events,
                                    android.content.Context applicationContext,
                                    android.hardware.camera2.CameraManager cameraManager,
                                    SurfaceTextureHelper surfaceTextureHelper,
                                    java.lang.String cameraId,
                                    int width,
                                    int height,
                                    int framerate)

    - #### stop

          public void stop()

      Stops the capture. Waits until no more calls to capture observer will be made. If waitCameraStop is true, also waits for the camera to stop.

    - #### getInstance

          public static Camera2Session getInstance()

    - #### getMaxZoom

          public float getMaxZoom()

    - #### getZoom

          public float getZoom()

    - #### setCameraZoom

          public int setCameraZoom(float zoom)

    - #### isFlashAvailable

          public java.lang.Boolean isFlashAvailable()

    - #### turnOnFlash

          public int turnOnFlash()

    - #### turnOffFlash

          public int turnOffFlash()