Device.Builder.SetType(HealthDeviceType) 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.
Sets an optional client supplied type of the device
[Android.Runtime.Register("setType", "(I)Landroid/health/connect/datatypes/Device$Builder;", "", ApiSince=34)]
public Android.Health.Connect.DataTypes.Device.Builder SetType(Android.Health.Connect.DataTypes.HealthDeviceType type);
[<Android.Runtime.Register("setType", "(I)Landroid/health/connect/datatypes/Device$Builder;", "", ApiSince=34)>]
member this.SetType : Android.Health.Connect.DataTypes.HealthDeviceType -> Android.Health.Connect.DataTypes.Device.Builder
Parameters
- type
- HealthDeviceType
Value is one of the following: Device.DEVICE_TYPE_UNKNOWN Device.DEVICE_TYPE_WATCH Device.DEVICE_TYPE_PHONE Device.DEVICE_TYPE_SCALE Device.DEVICE_TYPE_RING Device.DEVICE_TYPE_HEAD_MOUNTED Device.DEVICE_TYPE_FITNESS_BAND Device.DEVICE_TYPE_CHEST_STRAP Device.DEVICE_TYPE_SMART_DISPLAY Device.DEVICE_TYPE_CONSUMER_MEDICAL_DEVICE Device.DEVICE_TYPE_GLASSES Device.DEVICE_TYPE_HEARABLE Device.DEVICE_TYPE_FITNESS_MACHINE Device.DEVICE_TYPE_FITNESS_EQUIPMENT Device.DEVICE_TYPE_PORTABLE_COMPUTER Device.DEVICE_TYPE_METER
Returns
- Attributes
Remarks
Sets an optional client supplied type of the device
Android reference for android.health.connect.datatypes.Device.Builder.setType.
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.