setCameraFocusMode method

Future<void> setCameraFocusMode(
  1. ZegoCameraFocusMode mode,
  2. {ZegoPublishChannel? channel}
)

Set the camera focus mode.

Available since: 2.14.0 Description: Set the camera focus mode. Trigger: Called after turn on preview startPreivew. Restrictions: Currently only supports iOS and Android platforms. Note: This function is only available in ZegoExpressVideo SDK!

  • mode focus mode.
  • channel Publishing stream channel

Implementation

Future<void> setCameraFocusMode(ZegoCameraFocusMode mode,
    {ZegoPublishChannel? channel}) async {
  return await ZegoExpressImpl.instance
      .setCameraFocusMode(mode, channel: channel);
}