mirror of
https://github.com/openharmony/interface_sdk_c.git
synced 2026-08-24 06:23:09 -04:00
@@ -246,14 +246,13 @@ typedef struct Location_Info Location_Info;
|
||||
/**
|
||||
* @brief Indicates whether the location was obtained from the mock location function.
|
||||
*
|
||||
* @param location [in] Pointer to the location information structure.
|
||||
* A non-null pointer is required. The pointer can be obtained via {@link Location_InfoCallback}.
|
||||
* @return Returns whether the location was obtained from the mock location function.
|
||||
* - true: The location was obtained from the mock location function.
|
||||
* - false: The location originates from the system's real positioning result.
|
||||
* @param location - Pointer to the location information structure.
|
||||
* A non‑null pointer is required. The pointer can be obtained via {@link Location_InfoCallback}.
|
||||
* @return true if the location was obtained from the mock location function.
|
||||
* Otherwise, the location originates from the system's real positioning result.
|
||||
* @since 26.0.0
|
||||
*/
|
||||
bool OH_LocationInfo_IsFromMock(Location_Info *location);
|
||||
bool OH_LocationInfo_IsFromMock(Location_Info* location);
|
||||
|
||||
/**
|
||||
* @brief Obtain basic location information.
|
||||
|
||||
Reference in New Issue
Block a user