Lines Matching refs:location
6 Provides APIs for querying the location switch status, and starting and stopping location.
18 …ocation_8h.md) | Defines APIs for querying the location switch status, and starting and stopping l…
19 | [oh_location_type.h](oh__location__type_8h.md) | Defines common attributes of the location servic…
26 | struct [Location_BasicInfo](_location___basic_info.md) | Struct for the basic location informatio…
33 …1) [Location_ResultCode](#location_resultcode) | Enumerates error codes of the location service. |
34 …escene-1) [Location_UseScene](#location_usescene) | Enumerates use scenes in a location request. |
35 …#location_powerconsumptionscene) | Enumerates power consumption scenarios in a location request. |
36 …ype-1) [Location_SourceType](#location_sourcetype) | Defines the source of location information. |
37 …ocation_BasicInfo](#location_basicinfo) | Defines the struct for the basic location information. |
38 …ocation_info) [Location_Info](#location_info) | Defines the struct for the location information. |
39 … ([Location_Info](#location_info) \*location, void \*userData) | Defines the callback for receivin…
40 …on_RequestConfig](#location_requestconfig) | Defines the struct for the location request configura…
47 … = 3301000, LOCATION_SWITCH_OFF = 3301100<br>} | Enumerates error codes of the location service. |
48 … LOCATION_USE_SCENE_DAILY_LIFE_SERVICE = 0x0404 } | Enumerates use scenes in a location request. |
49 …_NO_POWER_CONSUMPTION = 0x0603 } | Enumerates power consumption scenarios in a location request. |
50 …CE_TYPE_INDOOR = 3, LOCATION_SOURCE_TYPE_RTK = 4 } | Defines the source of location information. |
57 …](#oh_location_islocatingenabled) (bool \*enabled) | Checks whether the location switch is enabled…
58 …(#location_requestconfig) \*requestConfig) | Starts locating and subscribes to location changes. |
59 …ocation_requestconfig) \*requestConfig) | Stops locating and unsubscribes from location changes. |
60 …ationinfo_getbasicinfo) ([Location_Info](#location_info) \*location) | Obtains basic location info…
61 …_Info](#location_info) \*location, char \*additionalInfo, uint32_t length) | Obtains the additiona…
64 …ion_UseScene](#location_usescene) useScene) | Sets the use scene in the location request configura…
65 …scene) powerConsumptionScene) | Sets the power consumption scene in the location request configura…
66 …questconfig) \*requestConfig, int interval) | Sets the location reporting interval in the location…
79 Defines the struct for the basic location information.
90 Defines the struct for the location information.
98 typedef void(* Location_InfoCallback) (Location_Info *location, void *userData)
101 Defines the callback for receiving reported location information.
109 …location | Pointer to the [Location_Info](#location_info) instance, which carries the latest locat…
119 Enumerates power consumption scenarios in a location request.
130 Defines the struct for the location request configuration.
141 Enumerates error codes of the location service.
152 Defines the source of location information.
163 Enumerates use scenes in a location request.
177 Enumerates power consumption scenarios in a location request.
183 …location service for your application until the GNSS can provide stable location results.<br>Durin…
184 …his mode is applicable when your application only needs the approximate location in scenarios such…
185 …tart the location service. When responding to another application requesting the same location ser…
194 Enumerates error codes of the location service.
214 Defines the source of location information.
232 Enumerates use scenes in a location request.
238 …ption is applicable when your application needs to obtain the real-time location of a mobile devic…
241 …s option is applicable when your application only needs the approximate location in scenarios such…
287 Checks whether the location switch is enabled.
295 …o receive the location switch status.<br>If the value is **true**, the location switch is enabled.…
301 **LOCAION_SUCCESS**: The location switch status is successfully queried.
305 **LOCATION_SERVICE_UNAVAILABLE**: The location switch status fails to be queried because the locati…
314 Starts locating and subscribes to location changes.
322 …equestConfig** instance. This parameter is used to specify the location scene and location reporti…
328 **LOCAION_SUCCESS**: The location function is started successfully.
334 **LOCATION_NOT_SUPPORTED**: The device does not support the location function.
336 **LOCATION_SERVICE_UNAVAILABLE**: The location service is abnormal.
338 **LOCATION_SWITCH_OFF**: The location function fails to be started because the location switch is d…
351 Stops locating and unsubscribes from location changes.
365 **LOCAION_SUCCESS**: The location function is stopped successfully.
371 **LOCATION_NOT_SUPPORTED**: The device does not support the location function.
373 **LOCATION_SERVICE_UNAVAILABLE**: The location service is abnormal.
375 **LOCATION_SWITCH_OFF**: The location switch is disabled.
385 Location_ResultCode OH_LocationInfo_GetAdditionalInfo (Location_Info * location, char * additionalI…
388 Obtains the additional information in the location information.
396 | location | Pointer to the [Location_Info](#location_info) instance.<br>A non-null pointer needs t…
397 …pointer of the char type. This variable is used to store the additional location information in JS…
404 **LOCAION_SUCCESS**: The additional location information is successfully obtained.
406 LOCATION_INVALID_PARAM 1. The input parameter **location** or **additionalInfo** is a null pointer.
414 Location_BasicInfo OH_LocationInfo_GetBasicInfo (Location_Info * location)
417 Obtains basic location information.
425 | location | Pointer to the [Location_Info](#location_info) instance.<br>A non-null pointer needs t…
429 Struct for the basic location information. For details, see [Location_BasicInfo](_location___basic_…
447 | callback | Pointer to the callback function, which is used to receive location information change…
457 Sets the location reporting interval in the location request configuration.
475 Sets the power consumption scene in the location request configuration.
484 | powerConsumptionScene | Power consumption scene in the location request.<br>The default value is …
493 Sets the use scene in the location request configuration.
512 | useScene | Use scene in the location request.<br>The default value is **LOCATION_USE_SCENE_DAILY_…