• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# GeofencePolygonRequest
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| [points](#points) | struct&nbsp;[Point](_point.md)[]<br/>多边形地理围栏的边界坐标,仅支持凸多边形。详见[Point](_point.md)。 |
26| [accuracy](#accuracy) | unsigned&nbsp;short<br/>多边形地理围栏的精度。详见[GeofenceAccuracy](_hdi_lpfence_geofence.md#geofenceaccuracy)。 |
27| [loiterTimeMs](#loitertimems) | unsigned&nbsp;int<br/>徘徊时间,单位为毫秒,需关注[GEOFENCE_TRANSITION_DWELL](_hdi_lpfence_geofence.md#geofencetransition)事件。若设备在多边形围栏内徘徊时间达到该值,则上报[GEOFENCE_TRANSITION_DWELL](_hdi_lpfence_geofence.md#geofencetransition)事件。 |
28| [monitorTransitions](#monitortransitions) | unsigned&nbsp;char<br/>关注的多边形围栏事件,若设备满足关注的事件则会进行上报。详见[GeofenceTransition](_hdi_lpfence_geofence.md#geofencetransition)。 |
29| [attribute](#attribute) | unsigned&nbsp;int<br/>设置多边形地理围栏。详见[GeofenceAttribute](_hdi_lpfence_geofence.md#geofenceattribute)。 |
30
31
32## 类成员变量说明
33
34
35### accuracy
36
37
38```
39unsigned short GeofencePolygonRequest::accuracy
40```
41
42**描述:**
43
44多边形地理围栏的精度。详见[GeofenceAccuracy](_hdi_lpfence_geofence.md#geofenceaccuracy)。
45
46
47### attribute
48
49
50```
51unsigned int GeofencePolygonRequest::attribute
52```
53
54**描述:**
55
56设置多边形地理围栏。详见[GeofenceAttribute](_hdi_lpfence_geofence.md#geofenceattribute)。
57
58
59### geofenceId
60
61
62```
63int GeofencePolygonRequest::geofenceId
64```
65
66**描述:**
67
68地理围栏的ID号,用于标识某个地理围栏,不可重复添加相同ID号的围栏。
69
70
71### loiterTimeMs
72
73
74```
75unsigned int GeofencePolygonRequest::loiterTimeMs
76```
77
78**描述:**
79
80徘徊时间,单位为毫秒,需关注[GEOFENCE_TRANSITION_DWELL](_hdi_lpfence_geofence.md#geofencetransition)事件。若设备在多边形围栏内徘徊时间达到该值,则上报[GEOFENCE_TRANSITION_DWELL](_hdi_lpfence_geofence.md#geofencetransition)事件。
81
82
83### monitorTransitions
84
85
86```
87unsigned char GeofencePolygonRequest::monitorTransitions
88```
89
90**描述:**
91
92关注的多边形围栏事件,若设备满足关注的事件则会进行上报。详见[GeofenceTransition](_hdi_lpfence_geofence.md#geofencetransition)。
93
94
95### points
96
97
98```
99struct Point [] GeofencePolygonRequest::points
100```
101
102**描述:**
103
104多边形地理围栏的边界坐标,仅支持凸多边形。详见[Point](_point.md)。
105