Interface PolarActivityApi
-
- All Implemented Interfaces:
public interface PolarActivityApi
Polar activity API. Requires feature FEATURE_POLAR_ACTIVITY_DATA
-
-
Method Summary
Modifier and Type Method Description abstract Single<List<PolarStepsData>>
getSteps(String identifier, Date fromDate, Date toDate)
Get steps for a given period. abstract Single<List<PolarDistanceData>>
getDistance(String identifier, Date fromDate, Date toDate)
Get distance for a given period. abstract Single<List<PolarActiveTimeData>>
getActiveTime(String identifier, Date fromDate, Date toDate)
Get active time for a given period. abstract Single<List<PolarCaloriesData>>
getCalories(String identifier, Date fromDate, Date toDate, CaloriesType caloriesType)
Get specific calories type for a given period. abstract Single<List<Polar247HrSamplesData>>
get247HrSamples(String identifier, Date fromDate, Date toDate)
Get 24/7 heart rate samples for a given period. abstract Single<List<PolarNightlyRechargeData>>
getNightlyRecharge(String identifier, Date fromDate, Date toDate)
Get nightly recharge for a given period. abstract Single<List<Polar247PPiSamplesData>>
get247PPiSamples(String identifier, Date fromDate, Date toDate)
Load 24/7 PPi data from a device for a given period. -
-
Method Detail
-
getSteps
abstract Single<List<PolarStepsData>> getSteps(String identifier, Date fromDate, Date toDate)
Get steps for a given period.
- 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 Single emitting a list of PolarStepsData representing the steps data for the specified period.
-
getDistance
abstract Single<List<PolarDistanceData>> getDistance(String identifier, Date fromDate, Date toDate)
Get distance for a given period.
- 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 Single emitting a list of PolarDistanceData representing the distance data for the specified period.
-
getActiveTime
abstract Single<List<PolarActiveTimeData>> getActiveTime(String identifier, Date fromDate, Date toDate)
Get active time for a given period.
- 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 Single emitting a list of PolarActiveTimeData representing the active time data for the specified period.
-
getCalories
abstract Single<List<PolarCaloriesData>> getCalories(String identifier, Date fromDate, Date toDate, CaloriesType caloriesType)
Get specific calories type for a given period.
- 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 Single emitting a list of PolarCaloriesData representing the calories data for the specified period.
-
get247HrSamples
abstract Single<List<Polar247HrSamplesData>> get247HrSamples(String identifier, Date fromDate, Date toDate)
Get 24/7 heart rate samples for a given period.
- 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 Single emitting a list of Polar247HrSamplesData representing the heart rate samples for the specified period.
-
getNightlyRecharge
abstract Single<List<PolarNightlyRechargeData>> getNightlyRecharge(String identifier, Date fromDate, Date toDate)
Get nightly recharge for a given period.
- 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 Single emitting a list of PolarNightlyRechargeData representing the nightly recharge data for the specified period.
-
get247PPiSamples
abstract Single<List<Polar247PPiSamplesData>> get247PPiSamples(String identifier, Date fromDate, Date toDate)
Load 24/7 PPi data from a device for a given period.
- 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 Single emitting a list of Polar247PPiSamplesData representing the 24/7 PPi data for the specified period.
-
-
-
-