HealthConnectManager.AggregateGroupByDuration 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("aggregateGroupByDuration", "(Landroid/health/connect/AggregateRecordsRequest;Ljava/time/Duration;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "GetAggregateGroupByDuration_Landroid_health_connect_AggregateRecordsRequest_Ljava_time_Duration_Ljava_util_concurrent_Executor_Landroid_os_OutcomeReceiver_Handler", ApiSince=34)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T" })]
public virtual void AggregateGroupByDuration (Android.Health.Connect.AggregateRecordsRequest request, Java.Time.Duration duration, Java.Util.Concurrent.IExecutor executor, Android.OS.IOutcomeReceiver callback);
[<Android.Runtime.Register("aggregateGroupByDuration", "(Landroid/health/connect/AggregateRecordsRequest;Ljava/time/Duration;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "GetAggregateGroupByDuration_Landroid_health_connect_AggregateRecordsRequest_Ljava_time_Duration_Ljava_util_concurrent_Executor_Landroid_os_OutcomeReceiver_Handler", ApiSince=34)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T" })>]
abstract member AggregateGroupByDuration : Android.Health.Connect.AggregateRecordsRequest * Java.Time.Duration * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit
override this.AggregateGroupByDuration : Android.Health.Connect.AggregateRecordsRequest * Java.Time.Duration * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit
Parameters
- request
- AggregateRecordsRequest
request for different aggregation.
- duration
- Duration
Duration 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 concrete intervals of time, for example 5 Hrs, 10 Hrs etc.
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.