openharmony 鸿蒙 lpfence_geofence_polygon_request

2025-06-16 浏览 (1)

GeofencePolygonRequest

概述

定义添加多边形地理围栏的数据结构。

起始版本: 4.0

相关模块:HdiLpfenceGeofence

汇总

Public 属性

名称描述
int geofenceId地理围栏的ID号,用于标识某个地理围栏,不可重复添加相同ID号的围栏。
struct Point[] points多边形地理围栏的边界坐标,仅支持凸多边形。详见Point
unsigned short accuracy多边形地理围栏的精度。详见GeofenceAccuracy
unsigned int loiterTimeMs徘徊时间,单位为毫秒,需关注GEOFENCE_TRANSITION_DWELL事件。若设备在多边形围栏内徘徊时间达到该值,则上报GEOFENCE_TRANSITION_DWELL事件。
unsigned char monitorTransitions关注的多边形围栏事件,若设备满足关注的事件则会进行上报。详见GeofenceTransition
unsigned int attribute设置多边形地理围栏。详见GeofenceAttribute

类成员变量说明

accuracy

unsigned short GeofencePolygonRequest::accuracy

描述

多边形地理围栏的精度。详见GeofenceAccuracy

attribute

unsigned int GeofencePolygonRequest::attribute

描述

设置多边形地理围栏。详见GeofenceAttribute

geofenceId

int GeofencePolygonRequest::geofenceId

描述

地理围栏的ID号,用于标识某个地理围栏,不可重复添加相同ID号的围栏。

loiterTimeMs

unsigned int GeofencePolygonRequest::loiterTimeMs

描述

徘徊时间,单位为毫秒,需关注GEOFENCE_TRANSITION_DWELL事件。若设备在多边形围栏内徘徊时间达到该值,则上报GEOFENCE_TRANSITION_DWELL事件。

monitorTransitions

unsigned char GeofencePolygonRequest::monitorTransitions

描述

关注的多边形围栏事件,若设备满足关注的事件则会进行上报。详见GeofenceTransition

points

struct Point [] GeofencePolygonRequest::points

描述

多边形地理围栏的边界坐标,仅支持凸多边形。详见Point

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Ipfence HDI 参考

harmony 鸿蒙CellTrajectoryData

harmony 鸿蒙CellbatchingRequest

harmony 鸿蒙CellbatchingTypes.idl

harmony 鸿蒙CellfenceInfo

harmony 鸿蒙CellfenceRequest

harmony 鸿蒙CellfenceSize

harmony 鸿蒙CellfenceStatus

harmony 鸿蒙CellfenceTypes.idl

harmony 鸿蒙HdiLpfenceCellbatching

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/x65dph