enableTrafficControl method

Future<void> enableTrafficControl(
  1. bool enabled,
  2. List<ZegoUIKitTrafficControlProperty> properties, {
  3. ZegoUIKitVideoConfig? minimizeVideoConfig,
  4. bool isFocusOnRemote = true,
  5. ZegoStreamType streamType = ZegoStreamType.main,
})

Implementation

Future<void> enableTrafficControl(
  bool enabled,
  List<ZegoUIKitTrafficControlProperty> properties, {
  ZegoUIKitVideoConfig? minimizeVideoConfig,
  bool isFocusOnRemote = true,
  ZegoStreamType streamType = ZegoStreamType.main,
}) async {
  await ZegoUIKitCore.shared.enableTrafficControl(
    enabled,
    properties,
    minimizeVideoConfig: minimizeVideoConfig,
    isFocusOnRemote: isFocusOnRemote,
    streamType: streamType,
  );
}