# addCircularRegion
通知App新增电子围栏
# 调用方式
addCircularRegion(params)
1
返回 Promise,使用 then/catch 或 await 处理结果。
# 请求参数
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
| type | String | Y | - | 1:enter 2:leave |
| latitude | String | Y | - | 经纬度 |
| longitude | String | Y | - | 经纬度 |
| radius | String | - | - | 范围精度 |
| identifier | String | Y | - | 场景ID |
# 接口调用示例
// circularRegion.addCircularRegion
this.$bridge.addCircularRegion(param)
1
2
2
# 返回参数
返回 Promise;原生返回数据的字段由宿主决定,当前 JS 封装未限定完整结构。
# 接口返回示例
// 成功失败
1