setDepthOutput abstract method

  1. @nitroNativeAsync
Future<void> setDepthOutput(
  1. int textureId,
  2. int enabled
)

Starts / stops the depth stream (depthStream) for the session. Android: a DEPTH16 stream on cameras with the DEPTH_OUTPUT capability (reopens the session); iOS: AVCaptureDepthDataOutput (TrueDepth / dual / LiDAR cameras). Throws DEPTH_UNSUPPORTED: when the device has no depth (CameraFormat.supportsDepthCapture). enabled: 1 = on, 0 = off.

Implementation

@nitroNativeAsync
Future<void> setDepthOutput(int textureId, int enabled);