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
fun build(): Device
Build and return Device
object
Return | |
---|---|
Device |
This value cannot be null . |
setManufacturer
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
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
fun setType(type: Int): Device.Builder
Sets an optional client supplied type of the device
Return | |
---|---|
Device.Builder |
This value cannot be null . |