Stay organized with collections
Save and categorize content based on your preferences.
class AggregateMetric<T : Any>
Identifier to supported metrics for aggregation.
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-07-30 UTC.
[null,null,["Last updated 2025-07-30 UTC."],[],[],null,["# AggregateMetric\n===============\n\nArtifact: [androidx.health.connect:connect-client](/jetpack/androidx/releases/health-connect) \n[View Source](https://cs.android.com/search?q=file:androidx/health/connect/client/aggregate/AggregateMetric.kt+class:androidx.health.connect.client.aggregate.AggregateMetric) \nAdded in [1.1.0](/jetpack/androidx/releases/health-connect#1.1.0)\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/androidx/health/connect/client/aggregate/AggregateMetric \"View this page in Java\")\n\n\n```\nclass AggregateMetric\u003cT : Any\u003e\n```\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nIdentifier to supported metrics for aggregation. \n\n| See also |\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [contains](/reference/kotlin/androidx/health/connect/client/aggregate/AggregationResult#contains(androidx.health.connect.client.aggregate.AggregateMetric)) | |\n| [get](/reference/kotlin/androidx/health/connect/client/aggregate/AggregationResult#get(androidx.health.connect.client.aggregate.AggregateMetric)) | |"]]