oh_location.h
概述
定义查询位置开关状态、启动定位、停止定位的接口。
@kit LocationKit
库: liblocation_ndk.so
系统能力: SystemCapability.Location.Location.Core
起始版本: 13
相关模块:Location
汇总
函数
| 名称 | 描述 |
|---|---|
| Location_ResultCode OH_Location_IsLocatingEnabled (bool *enabled) | 查询位置开关是否开启。 |
| Location_ResultCode OH_Location_StartLocating (const Location_RequestConfig *requestConfig) | 启动定位并订阅位置变化。 |
| Location_ResultCode OH_Location_StopLocating (const Location_RequestConfig *requestConfig) | 停止定位并取消订阅位置变化。 |