start static method

Future<bool> start()

Implementation

static Future<bool> start() async {
  if (currentState == CameraRunningState.started ||
      currentState == CameraRunningState.starting) {
    return true;
  }
  currentState = CameraRunningState.starting;
  bool res = await CameraInterface().start();
  if (res) currentState = CameraRunningState.started;
  return res;
}