enableTrafficControl method
Future<void>
enableTrafficControl(
- bool enabled,
- List<
ZegoUIKitTrafficControlProperty> properties, { - ZegoUIKitVideoConfig? minimizeVideoConfig,
- bool isFocusOnRemote = true,
- 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,
);
}