Added in API level 34
Builder
class Builder
| kotlin.Any | |
| ↳ | android.health.connect.datatypes.Device.Builder |
Summary
| Public constructors | |
|---|---|
Builder() |
|
| Public methods | |
|---|---|
| Device |
build()Build and return |
| Device.Builder |
setManufacturer(manufacturer: String?)Sets an optional client supplied manufacturer of the device |
| Device.Builder |
Sets an optional client supplied model of the device |
| Device.Builder |
Sets an optional client supplied type of the device |
Public constructors
Public methods
build
Added in API level 34
fun build(): Device
Build and return Device object
| Return | |
|---|---|
Device |
This value cannot be null. |
setManufacturer
Added in API level 34
fun setManufacturer(manufacturer: String?): Device.Builder
Sets an optional client supplied manufacturer of the device
| Parameters | |
|---|---|
manufacturer |
String?: This value may be null. |
| Return | |
|---|---|
Device.Builder |
This value cannot be null. |
setModel
Added in API level 34
fun setModel(model: String?): Device.Builder
Sets an optional client supplied model of the device
| Parameters | |
|---|---|
model |
String?: This value may be null. |
| Return | |
|---|---|
Device.Builder |
This value cannot be null. |
setType
Added in API level 34
fun setType(type: Int): Device.Builder
Sets an optional client supplied type of the device
| Return | |
|---|---|
Device.Builder |
This value cannot be null. |