642efd8c创建于 2024年9月30日历史提交

oh_location.h

Overview

Defines APIs for querying the location switch status, and starting and stopping location.

@kit LocationKit

Library: libohlocation.so

System capability: SystemCapability.Location.Location.Core

Since: 13

Related module: Location

Summary

Callback

Name Description
Location_ResultCodeOH_Location_IsLocatingEnabled (bool *enabled) Checks whether the location switch is enabled.
Location_ResultCodeOH_Location_StartLocating (const Location_RequestConfig *requestConfig) Starts locating and subscribes to location changes.
Location_ResultCodeOH_Location_StopLocating (const Location_RequestConfig *requestConfig) Stops locating and unsubscribes from location changes.