Added in API level 34
Device
class Device
kotlin.Any | |
↳ | android.health.connect.datatypes.Device |
A physical device (such as phone, watch, scale, or chest strap) which captured associated health data point.
Device needs to be populated by users of the API. Metadata fields not provided by clients will remain absent.
Summary
Nested classes | |
---|---|
Constants | |
---|---|
static Int | |
static Int | |
static Int | |
static Int | |
static Int | |
static Int | |
static Int | |
static Int | |
static Int |
Public methods | |
---|---|
Boolean |
Indicates whether some other object is "equal to" this one. |
String? | |
String? |
getModel() |
Int |
getType() |
Int |
hashCode() Returns a hash code value for the object. |
Constants
Public methods
equals
Added in API level 34
fun equals(other: Any?): Boolean
Indicates whether some other object is "equal to" this one.
Parameters | |
---|---|
obj |
the reference object with which to compare. |
object |
the reference object with which to compare. This value may be null . |
Return | |
---|---|
Boolean |
true if this object is the same as the obj |
getManufacturer
Added in API level 34
fun getManufacturer(): String?
Return | |
---|---|
String? |
The device manufacturer if set, null otherwise |
getModel
Added in API level 34
fun getModel(): String?
Return | |
---|---|
String? |
The device model if set, null otherwise |
getType
Added in API level 34
fun getType(): Int
hashCode
Added in API level 34
fun hashCode(): Int
Returns a hash code value for the object.
Return | |
---|---|
Int |
a hash code value for this object. |