Stay organized with collections
Save and categorize content based on your preferences.
AggregateRecordsRequest
class AggregateRecordsRequest<T : Any!>
A class to create requests for HealthConnectManager.aggregate
Summary
Public methods
getTimeRangeFilter
fun getTimeRangeFilter(): TimeRangeFilter
Return |
TimeRangeFilter |
time range b/w which the aggregate operation is to be performed This value cannot be null . |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# AggregateRecordsRequest\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nAggregateRecordsRequest\n=======================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/health/connect/AggregateRecordsRequest \"View this page in Java\") \n\n```\nclass AggregateRecordsRequest\u003cT : Any!\u003e\n```\n\n|---|-----------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.health.connect.AggregateRecordsRequest](#) |\n\nA class to create requests for [HealthConnectManager.aggregate](/reference/kotlin/android/health/connect/HealthConnectManager#aggregate(android.health.connect.AggregateRecordsRequest,%20java.util.concurrent.Executor,%20android.os.OutcomeReceiver))\n\nSummary\n-------\n\n| Nested classes ||\n|---|--------------------------------------------------------------------------------------------|\n| | [Builder](/reference/kotlin/android/health/connect/AggregateRecordsRequest.Builder) \u003cbr /\u003e |\n\n| Public methods ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------|\n| [MutableSet](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-set/index.html)\\\u003c[AggregationType](/reference/kotlin/android/health/connect/datatypes/AggregationType)\\\u003cT\\\u003e!\\\u003e | [getAggregationTypes](#getAggregationTypes())`()` \u003cbr /\u003e |\n| [MutableSet](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-set/index.html)\\\u003c[DataOrigin](/reference/kotlin/android/health/connect/datatypes/DataOrigin)!\\\u003e | [getDataOriginsFilters](#getDataOriginsFilters())`()` \u003cbr /\u003e |\n| [TimeRangeFilter](/reference/kotlin/android/health/connect/TimeRangeFilter) | [getTimeRangeFilter](#getTimeRangeFilter())`()` \u003cbr /\u003e |\n\nPublic methods\n--------------\n\n### getAggregationTypes\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getAggregationTypes(): MutableSet\u003cAggregationType\u003cT\u003e!\u003e\n```\n\n| Return ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [MutableSet](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-set/index.html)\u003c[AggregationType](/reference/kotlin/android/health/connect/datatypes/AggregationType)\u003cT\u003e!\u003e | Set of integers from [AggregationType](/reference/kotlin/android/health/connect/datatypes/AggregationType) to aggregate This value cannot be `null`. |\n\n### getDataOriginsFilters\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getDataOriginsFilters(): MutableSet\u003cDataOrigin!\u003e\n```\n\n| Return ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [MutableSet](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-set/index.html)\u003c[DataOrigin](/reference/kotlin/android/health/connect/datatypes/DataOrigin)!\u003e | Set of [DataOrigin](/reference/kotlin/android/health/connect/datatypes/DataOrigin)s to read from, or empty set for no filter This value cannot be `null`. |\n\n### getTimeRangeFilter\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getTimeRangeFilter(): TimeRangeFilter\n```\n\n| Return ||\n|-----------------------------------------------------------------------------|----------------------------------------------------------------------------------------------|\n| [TimeRangeFilter](/reference/kotlin/android/health/connect/TimeRangeFilter) | time range b/w which the aggregate operation is to be performed This value cannot be `null`. |"]]