enableAGC method

Future<void> enableAGC(
  1. bool enable
)

Enables or disables automatic gain control (AGC).

Available since: 1.1.0 Description: After turning on this function, the SDK can automatically adjust the microphone volume to adapt to near and far sound pickups and keep the volume stable. Use case: When you need to ensure volume stability to improve call quality and user experience, you can turn on this feature. When to call: It needs to be called after createEngine. Caution: Before this function is called, the SDK automatically determines whether to use AGC. Once this function is called, the SDK does not automatically determine whether to use AGC. Restrictions: None.

  • enable Whether to enable automatic gain control, true: enable, false: disable

Implementation

Future<void> enableAGC(bool enable) async {
  return await ZegoExpressImpl.instance.enableAGC(enable);
}