HealthConnectManager.AggregateGroupByPeriod Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Get aggregations corresponding to request
.
[Android.Runtime.Register("aggregateGroupByPeriod", "(Landroid/health/connect/AggregateRecordsRequest;Ljava/time/Period;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "GetAggregateGroupByPeriod_Landroid_health_connect_AggregateRecordsRequest_Ljava_time_Period_Ljava_util_concurrent_Executor_Landroid_os_OutcomeReceiver_Handler", ApiSince=34)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public virtual void AggregateGroupByPeriod (Android.Health.Connect.AggregateRecordsRequest request, Java.Time.Period period, Java.Util.Concurrent.IExecutor executor, Android.OS.IOutcomeReceiver callback);
[<Android.Runtime.Register("aggregateGroupByPeriod", "(Landroid/health/connect/AggregateRecordsRequest;Ljava/time/Period;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "GetAggregateGroupByPeriod_Landroid_health_connect_AggregateRecordsRequest_Ljava_time_Period_Ljava_util_concurrent_Executor_Landroid_os_OutcomeReceiver_Handler", ApiSince=34)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
abstract member AggregateGroupByPeriod : Android.Health.Connect.AggregateRecordsRequest * Java.Time.Period * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit
override this.AggregateGroupByPeriod : Android.Health.Connect.AggregateRecordsRequest * Java.Time.Period * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit
Parameters
- request
- AggregateRecordsRequest
Request for different aggregation.
- period
- Period
Period on which to group by results
- executor
- IExecutor
Executor on which to invoke the callback.
- callback
- IOutcomeReceiver
Callback to receive result of performing this operation.
- Attributes
Remarks
Get aggregations corresponding to request
. Use this API if results are to be grouped by number of days. This API handles changes in ZoneOffset
when computing the data on a per-day basis.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.