harmony 鸿蒙GeofenceCircleRequest

  • 2023-06-24
  • 浏览 (302)

GeofenceCircleRequest

概述

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

Since:

4.0

相关模块:

HdiLpfenceGeofence

汇总

Public 属性

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

类成员变量说明

accuracy

unsigned short GeofenceCircleRequest::accuracy

描述:

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

attribute

unsigned int GeofenceCircleRequest::attribute

描述:

设置圆形地理围栏。详见GeofenceAttribute

geofenceId

int GeofenceCircleRequest::geofenceId

描述:

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

loiterTimeMs

unsigned int GeofenceCircleRequest::loiterTimeMs

描述:

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

monitorTransitions

unsigned char GeofenceCircleRequest::monitorTransitions

描述:

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

point

struct Point GeofenceCircleRequest::point

描述:

圆形地理围栏的中心点坐标。详见Point

radius

double GeofenceCircleRequest::radius

描述:

圆形地理围栏的半径,单位为米。

你可能感兴趣的鸿蒙文章

harmony 鸿蒙HDI 参数参考

harmony 鸿蒙ActRecognitionEvent

harmony 鸿蒙Activation

harmony 鸿蒙ActivityRecognitionTypes.idl

harmony 鸿蒙AddFusion

harmony 鸿蒙Alignment

harmony 鸿蒙AllocInfo

harmony 鸿蒙ApduSimIORequestInfo

harmony 鸿蒙ArgMaxFusion

harmony 鸿蒙Audio

0  赞