setGeoFence static method
- ZegoGeoFenceType type,
- List<
int> areaList
Set Geo Fence.
Available since: 3.4.0 Description: If you need to use the geo fence feature, please call this function to complete the configuration. When to call: Must be set before calling createEngine to take effect, otherwise it will fail. Restrictions: If you need to use the geo fence feature, please contact ZEGO Technical Support. Caution: None.
type
Geo fence type. Description: Used to set the geo fence type.areaList
Geo fence area. Description: Used to describe the range of geo fence.
Implementation
static Future<void> setGeoFence(
ZegoGeoFenceType type, List<int> areaList) async {
return await ZegoExpressImpl.setGeoFence(type, areaList);
}