setGeofencingConfig static method

Future<bool> setGeofencingConfig(
  1. List<int> areaList,
  2. ZIMGeofencingType type
)

Available since: 2.12.0 and above.

Description: Geofencing means that instant messaging data transmission is limited to a certain area to meet regional data privacy and security regulations, that is, to restrict access to communication services in a specific area.

When to call /Trigger: The setGeofencingConfig interface needs to be called before the create interface.

Restrictions: If you need to use this function, please contact ZEGO technical support.

Caution: If you need to update geo fencing information, please call the destroy interface to destroy the current ZIM instance, and then call this interface.

Implementation

static Future<bool> setGeofencingConfig(
    List<int> areaList, ZIMGeofencingType type) async {
  return await ZIMManager.setGeofencingConfig(areaList, type);
}