fetchHealthDataByDate

actual suspend fun fetchHealthDataByDate(day: Int, month: Int, year: Int): HealthData

Fetches historical health data for a specific date.

This function retrieves a summary of health metrics such as steps, calories, distance, and active minutes for the given day, month, and year.

Return

A HealthData object containing the aggregated health information for the specified date.

Parameters

day

The day of the month (1-31).

month

The month of the year (1-12, where 1 is January).

year

The year (e.g., 2023).

Throws

if an error occurs while fetching the data, such as permission issues or if no data is available for the specified date.

actual suspend fun fetchHealthDataByDate(day: Int, month: Int, year: Int): HealthData

Fetches historical health data for a specific date.

This function retrieves a summary of health metrics such as steps, calories, distance, and active minutes for the given day, month, and year.

Return

A HealthData object containing the aggregated health information for the specified date.

Parameters

day

The day of the month (1-31).

month

The month of the year (1-12, where 1 is January).

year

The year (e.g., 2023).

Throws

if an error occurs while fetching the data, such as permission issues or if no data is available for the specified date.

actual suspend fun fetchHealthDataByDate(day: Int, month: Int, year: Int): HealthData

Fetches historical health data for a specific date.

This function retrieves a summary of health metrics such as steps, calories, distance, and active minutes for the given day, month, and year.

Return

A HealthData object containing the aggregated health information for the specified date.

Parameters

day

The day of the month (1-31).

month

The month of the year (1-12, where 1 is January).

year

The year (e.g., 2023).

Throws

if an error occurs while fetching the data, such as permission issues or if no data is available for the specified date.