• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# GeofenceCircleRequest
2
3
4## 概述
5
6定义添加圆形地理围栏的数据结构。
7
8**Since:**
9
104.0
11
12**相关模块:**
13
14[HdiLpfenceGeofence](_hdi_lpfence_geofence.md)
15
16
17## 汇总
18
19
20### Public 属性
21
22  | 名称 | 描述 |
23| -------- | -------- |
24| [geofenceId](#geofenceid) | int<br/>地理围栏的ID号,用于标识某个地理围栏,不可重复添加相同ID号的围栏。 |
25| [point](#point) | struct&nbsp;[Point](_point.md)<br/>圆形地理围栏的中心点坐标。详见[Point](_point.md)。 |
26| [radius](#radius) | double<br/>圆形地理围栏的半径,单位为米。 |
27| [accuracy](#accuracy) | unsigned&nbsp;short<br/>圆形地理围栏的精度。详见[GeofenceAccuracy](_hdi_lpfence_geofence.md#geofenceaccuracy)。 |
28| [loiterTimeMs](#loitertimems) | unsigned&nbsp;int<br/>徘徊时间,单位为毫秒,需关注[GEOFENCE_TRANSITION_DWELL](_hdi_lpfence_geofence.md#geofencetransition)事件。若设备在圆形围栏内徘徊时间达到该值,则上报[GEOFENCE_TRANSITION_DWELL](_hdi_lpfence_geofence.md#geofencetransition)事件。 |
29| [monitorTransitions](#monitortransitions) | unsigned&nbsp;char<br/>关注的圆形围栏事件,若设备满足关注的事件则会进行上报。详见[GeofenceTransition](_hdi_lpfence_geofence.md#geofencetransition)。 |
30| [attribute](#attribute) | unsigned&nbsp;int<br/>设置圆形地理围栏。详见[GeofenceAttribute](_hdi_lpfence_geofence.md#geofenceattribute)。 |
31
32
33## 类成员变量说明
34
35
36### accuracy
37
38
39```
40unsigned short GeofenceCircleRequest::accuracy
41```
42
43**描述:**
44
45圆形地理围栏的精度。详见[GeofenceAccuracy](_hdi_lpfence_geofence.md#geofenceaccuracy)。
46
47
48### attribute
49
50
51```
52unsigned int GeofenceCircleRequest::attribute
53```
54
55**描述:**
56
57设置圆形地理围栏。详见[GeofenceAttribute](_hdi_lpfence_geofence.md#geofenceattribute)。
58
59
60### geofenceId
61
62
63```
64int GeofenceCircleRequest::geofenceId
65```
66
67**描述:**
68
69地理围栏的ID号,用于标识某个地理围栏,不可重复添加相同ID号的围栏。
70
71
72### loiterTimeMs
73
74
75```
76unsigned int GeofenceCircleRequest::loiterTimeMs
77```
78
79**描述:**
80
81徘徊时间,单位为毫秒,需关注[GEOFENCE_TRANSITION_DWELL](_hdi_lpfence_geofence.md#geofencetransition)事件。若设备在圆形围栏内徘徊时间达到该值,则上报[GEOFENCE_TRANSITION_DWELL](_hdi_lpfence_geofence.md#geofencetransition)事件。
82
83
84### monitorTransitions
85
86
87```
88unsigned char GeofenceCircleRequest::monitorTransitions
89```
90
91**描述:**
92
93关注的圆形围栏事件,若设备满足关注的事件则会进行上报。详见[GeofenceTransition](_hdi_lpfence_geofence.md#geofencetransition)。
94
95
96### point
97
98
99```
100struct Point GeofenceCircleRequest::point
101```
102
103**描述:**
104
105圆形地理围栏的中心点坐标。详见[Point](_point.md)。
106
107
108### radius
109
110
111```
112double GeofenceCircleRequest::radius
113```
114
115**描述:**
116
117圆形地理围栏的半径,单位为米。
118