Interface PolarActivityApi
-
- All Implemented Interfaces:
public interface PolarActivityApiPolar activity API. Requires feature FEATURE_POLAR_ACTIVITY_DATA
-
-
Method Summary
Modifier and Type Method Description abstract List<PolarStepsData>getSteps(String identifier, LocalDate fromDate, LocalDate toDate)Get steps for a given period. abstract List<PolarActivitySamplesDayData>getActivitySampleData(String identifier, LocalDate fromDate, LocalDate toDate)Get activity sample data for a given period. abstract List<PolarDailySummaryData>getDailySummaryData(String identifier, LocalDate fromDate, LocalDate toDate)Get daily summary sample data for a given period. abstract List<PolarDistanceData>getDistance(String identifier, LocalDate fromDate, LocalDate toDate)Get distance for a given period. abstract List<PolarActiveTimeData>getActiveTime(String identifier, LocalDate fromDate, LocalDate toDate)Get active time for a given period. abstract List<PolarCaloriesData>getCalories(String identifier, LocalDate fromDate, LocalDate toDate, CaloriesType caloriesType)Get specific calories type for a given period. abstract List<Polar247HrSamplesData>get247HrSamples(String identifier, LocalDate fromDate, LocalDate toDate)Get 24/7 heart rate samples for a given period. abstract List<PolarNightlyRechargeData>getNightlyRecharge(String identifier, LocalDate fromDate, LocalDate toDate)Get nightly recharge for a given period. abstract List<Polar247PPiSamplesData>get247PPiSamples(String identifier, LocalDate fromDate, LocalDate toDate)Load 24/7 PPi data from a device for a given period. -
-
Method Detail
-
getSteps
abstract List<PolarStepsData> getSteps(String identifier, LocalDate fromDate, LocalDate toDate)
Get steps for a given period. Requires feature PolarBleSdkFeature.FEATURE_POLAR_ACTIVITY_DATA
- Parameters:
identifier- The Polar device ID or BT address.fromDate- The starting date of the period to retrieve steps from.toDate- The ending date of the period to retrieve steps from.- Returns:
A list of PolarStepsData representing the steps data for the specified period.
-
getActivitySampleData
abstract List<PolarActivitySamplesDayData> getActivitySampleData(String identifier, LocalDate fromDate, LocalDate toDate)
Get activity sample data for a given period. Requires feature PolarBleApi.PolarBleSdkFeature.FEATURE_POLAR_ACTIVITY_DATA
- Parameters:
identifier- The Polar device ID or BT address.fromDate- The starting date of the period to retrieve activity sample data from.toDate- The ending date of the period to retrieve activity sample data from.- Returns:
A list of PolarActivitySamplesDayData containing all activity sample data for the given date range.
-
getDailySummaryData
abstract List<PolarDailySummaryData> getDailySummaryData(String identifier, LocalDate fromDate, LocalDate toDate)
Get daily summary sample data for a given period. Requires feature PolarBleApi.PolarBleSdkFeature.FEATURE_POLAR_ACTIVITY_DATA Daily summary data is a cumulative sum for the activity per given date.
- Parameters:
identifier- The Polar device ID or BT address.fromDate- The starting date of the period to retrieve daily summary data from.toDate- The ending date of the period to retrieve daily summary data from.- Returns:
A list of PolarDailySummaryData containing all daily summary data for the given date range.
-
getDistance
abstract List<PolarDistanceData> getDistance(String identifier, LocalDate fromDate, LocalDate toDate)
Get distance for a given period. Requires feature PolarBleApi.PolarBleSdkFeature.FEATURE_POLAR_ACTIVITY_DATA
- Parameters:
identifier- The Polar device ID or BT address.fromDate- The starting date of the period to retrieve distance from.toDate- The ending date of the period to retrieve distance from.- Returns:
A list of PolarDistanceData representing the distance data for the specified period.
-
getActiveTime
abstract List<PolarActiveTimeData> getActiveTime(String identifier, LocalDate fromDate, LocalDate toDate)
Get active time for a given period. Requires feature PolarBleApi.PolarBleSdkFeature.FEATURE_POLAR_ACTIVITY_DATA
- Parameters:
identifier- The Polar device ID or BT address.fromDate- The starting date of the period to retrieve active time from.toDate- The ending date of the period to retrieve active time from.- Returns:
A list of PolarActiveTimeData representing the active time data for the specified period.
-
getCalories
abstract List<PolarCaloriesData> getCalories(String identifier, LocalDate fromDate, LocalDate toDate, CaloriesType caloriesType)
Get specific calories type for a given period. Requires feature PolarBleApi.PolarBleSdkFeature.FEATURE_POLAR_ACTIVITY_DATA
- Parameters:
identifier- The Polar device ID or BT address.fromDate- The starting date of the period to retrieve calories data from.toDate- The ending date of the period to retrieve calories data from.caloriesType- The type of calories data to retrieve (e.g., ACTIVITY, TRAINING, BMR).- Returns:
A list of PolarCaloriesData representing the calories data for the specified period.
-
get247HrSamples
abstract List<Polar247HrSamplesData> get247HrSamples(String identifier, LocalDate fromDate, LocalDate toDate)
Get 24/7 heart rate samples for a given period. Requires feature PolarBleApi.PolarBleSdkFeature.FEATURE_POLAR_ACTIVITY_DATA
- Parameters:
identifier- The Polar device ID or BT address.fromDate- The starting date of the period to retrieve heart rate samples from.toDate- The ending date of the period to retrieve heart rate samples from.- Returns:
A list of Polar247HrSamplesData representing the heart rate samples for the specified period.
-
getNightlyRecharge
abstract List<PolarNightlyRechargeData> getNightlyRecharge(String identifier, LocalDate fromDate, LocalDate toDate)
Get nightly recharge for a given period. Requires feature PolarBleApi.PolarBleSdkFeature.FEATURE_POLAR_ACTIVITY_DATA
- Parameters:
identifier- The Polar device ID or BT address.fromDate- The starting date of the period to retrieve nightly recharge from.toDate- The ending date of the period to retrieve nightly recharge from.- Returns:
A list of PolarNightlyRechargeData representing the nightly recharge data for the specified period.
-
get247PPiSamples
abstract List<Polar247PPiSamplesData> get247PPiSamples(String identifier, LocalDate fromDate, LocalDate toDate)
Load 24/7 PPi data from a device for a given period. Requires feature PolarBleApi.PolarBleSdkFeature.FEATURE_POLAR_ACTIVITY_DATA
- Parameters:
identifier- , Polar device ID or BT addressfromDate- The starting date of the period to retrieve 24/7 PPi data from.toDate- The ending date of the period to retrieve 24/7 PPi data from.- Returns:
A list of Polar247PPiSamplesData representing the 24/7 PPi data for the specified period.
-
-
-
-