Added in API level 34

Builder


class Builder
kotlin.Any
   ↳ android.health.connect.datatypes.Device.Builder

Summary

Public constructors

Public methods
Device

Build and return Device object

Device.Builder
setManufacturer(manufacturer: String?)

Sets an optional client supplied manufacturer of the device

Device.Builder
setModel(model: String?)

Sets an optional client supplied model of the device

Device.Builder
setType(type: Int)

Sets an optional client supplied type of the device

Public constructors

Builder

Added in API level 34
Builder()

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.