Language

DeviceDataTypeSource.OfDataType(Class, Boolean, Boolean) Method

Definition

Create a source of data of a particular data type that is provided by a device.

[Android.Runtime.Register("ofDataType", "(Ljava/lang/Class;ZZ)Landroid/health/connect/DeviceDataTypeSource;", "", ApiSince=37)]
public static Android.Health.Connect.DeviceDataTypeSource OfDataType(Java.Lang.Class dataType, bool isAvailable, bool isUserEnabled);
[<Android.Runtime.Register("ofDataType", "(Ljava/lang/Class;ZZ)Landroid/health/connect/DeviceDataTypeSource;", "", ApiSince=37)>]
static member OfDataType : Java.Lang.Class * bool * bool -> Android.Health.Connect.DeviceDataTypeSource

Parameters

dataType
Class

The data type provided by the device. This value cannot be null.

isAvailable
Boolean

Whether this data type is currently available from the device. This may be false if for example, the device is disconnected or out of range.

isUserEnabled
Boolean

Whether the user has enabled this data type for the device.

Returns

Attributes

Remarks

Create a source of data of a particular data type that is provided by a device. For the SymptomRecord data type, please us ofSymptomType(int, boolean, boolean).

Android reference for android.health.connect.DeviceDataTypeSource.ofDataType.

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