bool *discriminant);
/**
+ * @internal
* @ingroup CAPI_NETWORK_UA_MODULE
* @brief Starts user location detection.
* @since_tizen 6.5
void *user_data);
/**
+ * @internal
* @ingroup CAPI_NETWORK_UA_MODULE
* @brief Stops user location detection.
* @since_tizen 6.5
int ua_monitor_stop_location_detection(
ua_monitor_h monitor);
+/**
+ * @internal
+ * @ingroup CAPI_NETWORK_UA_MODULE
+ * @brief Gets the distance for the location handle.
+ * @since_tizen 6.5
+ *
+ * @param[in] location handle Location handle for location information.
+ * @param[out] distance distance of the detected device and user.
+ *
+ * @return 0 on success, otherwise a negative error value
+ * @retval #UA_ERROR_NONE Successful
+ * @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
+ */
+int ua_location_get_distance(ua_location_h location_handle, int *distance);
+
+/**
+ * @internal
+ * @ingroup CAPI_NETWORK_UA_MODULE
+ * @brief Gets the position for the location handle.
+ * @since_tizen 6.5
+ *
+ * @param[in] location handle Location handle for location information.
+ * @param[out] x x-coordinate of the location.
+ * @param[out] y y-coordinate of the location.
+ * @param[out] z z-coordinate of the location.
+ *
+ * @return 0 on success, otherwise a negative error value
+ * @retval #UA_ERROR_NONE Successful
+ * @retval #UA_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #UA_ERROR_NOT_INITIALIZED Not initialized yet
+ */
+int ua_location_get_position(ua_location_h location_handle, int *x, int *y, int *z);
/* Deprecated API's */
FUNC_EXIT;
}
-
void _ua_monitor_handle_scanned_device(int result, uam_device_info_s *uam_info)
{
FUNC_ENTRY;
return UA_ERROR_NONE;
}
+int ua_location_get_distance(ua_location_h location_handle, int *distance)
+{
+ FUNC_ENTRY;
+
+ ua_location_info_s *location = (ua_location_info_s*)location_handle;
+
+ UA_CHECK_SUPPORTED_FEATURE(UA_FEATURE_COMMON);
+ UA_CHECK_INIT_STATUS();
+ UA_VALIDATE_INPUT_PARAMETER(distance);
+ UA_VALIDATE_INPUT_PARAMETER(location_handle);
+
+ *distance = location->distance;
+
+ FUNC_EXIT;
+ return UA_ERROR_NONE;
+
+}
+
+int ua_location_get_position(ua_location_h location_handle,
+ int *x, int* y, int* z)
+{
+ FUNC_ENTRY;
+
+ ua_location_info_s *location = (ua_location_info_s*)location_handle;
+
+ UA_CHECK_SUPPORTED_FEATURE(UA_FEATURE_COMMON);
+ UA_CHECK_INIT_STATUS();
+ UA_VALIDATE_INPUT_PARAMETER(x);
+ UA_VALIDATE_INPUT_PARAMETER(y);
+ UA_VALIDATE_INPUT_PARAMETER(z);
+ UA_VALIDATE_INPUT_PARAMETER(location_handle);
+
+ *x = location->x;
+ *y = location->y;
+ *z = location->z;
+
+ FUNC_EXIT;
+ return UA_ERROR_NONE;
+
+}
+
int ua_monitor_set_brightness_threshold(ua_monitor_h handle,
int presence_threshold, int absence_threshold)
{