HealthConnectManager.GetDeviceDataSources(IExecutor, IOutcomeReceiver) 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.
Retrieves the list of all DeviceDataSources.
[Android.Runtime.Register("getDeviceDataSources", "(Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "GetGetDeviceDataSources_Ljava_util_concurrent_Executor_Landroid_os_OutcomeReceiver_Handler", ApiSince=37)]
public virtual void GetDeviceDataSources(Java.Util.Concurrent.IExecutor executor, Android.OS.IOutcomeReceiver callback);
[<Android.Runtime.Register("getDeviceDataSources", "(Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "GetGetDeviceDataSources_Ljava_util_concurrent_Executor_Landroid_os_OutcomeReceiver_Handler", ApiSince=37)>]
abstract member GetDeviceDataSources : Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit
override this.GetDeviceDataSources : 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
Retrieves the list of all DeviceDataSources.
The returned list includes all devices that have been advertised by device data providers, filtered based on the caller's permissions. A device is included if the caller holds the READ permission for at least one of the data types supported by the device. Other data types supported by the device that the caller does not have permission for will nonetheless be included.
Android reference for android.health.connect.HealthConnectManager.getDeviceDataSources.
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.