turnCameraOn method

void turnCameraOn(
  1. bool isOn, {
  2. String? userID,
})

turn on/off camera

Implementation

void turnCameraOn(bool isOn, {String? userID}) {
  ZegoUIKitCore.shared.turnCameraOn(
    userID?.isEmpty ?? true
        ? ZegoUIKitCore.shared.coreData.localUser.id
        : userID!,
    isOn,
  );
}