Language

HealthConnectManager.GetDeviceDataSourceCapabilities Method

Definition

Returns a set of record type classes that device data sources are capable of providing.

[Android.Runtime.Register("getDeviceDataSourceCapabilities", "(Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "GetGetDeviceDataSourceCapabilities_Ljava_util_concurrent_Executor_Landroid_os_OutcomeReceiver_Handler", ApiSince=37)]
public virtual void GetDeviceDataSourceCapabilities(Java.Util.Concurrent.IExecutor executor, Android.OS.IOutcomeReceiver callback);
[<Android.Runtime.Register("getDeviceDataSourceCapabilities", "(Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "GetGetDeviceDataSourceCapabilities_Ljava_util_concurrent_Executor_Landroid_os_OutcomeReceiver_Handler", ApiSince=37)>]
abstract member GetDeviceDataSourceCapabilities : Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit
override this.GetDeviceDataSourceCapabilities : Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit

Parameters

executor
IExecutor

Executor on which to invoke the callback. This value cannot be null. Callback and listener events are dispatched through this Executor, providing an easy way to control which thread is used. To dispatch events through the main thread of your application, you can use Context.getMainExecutor(). Otherwise, provide an Executor that dispatches to an appropriate thread.

callback
IOutcomeReceiver

Callback to receive result of performing this operation. This value cannot be null.

Attributes

Remarks

Returns a set of record type classes that device data sources are capable of providing.

Use this method to avoid making unnecessary permission requests when reading device data in case the data type is not provided by any device data sources.

This will filter out any permission sensitive data types the caller does not hold read permissions for. Data types belonging to getPermissionSensitiveDeviceDataSourceCapabilities() are excluded from the response unless the caller holds read permissions for those data types.

Android reference for android.health.connect.HealthConnectManager.getDeviceDataSourceCapabilities.

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.

Applies to