Added in API level 34
Builder
class Builder
kotlin.Any | |
↳ | android.health.connect.datatypes.DataOrigin.Builder |
Summary
Public constructors | |
---|---|
Builder() |
Public methods | |
---|---|
DataOrigin |
build() |
DataOrigin.Builder |
setPackageName(packageName: String) Sets the package name of the contributing package. |
Public constructors
Public methods
build
Added in API level 34
fun build(): DataOrigin
Return | |
---|---|
DataOrigin |
DataOrigin 's object This value cannot be null . |
setPackageName
Added in API level 34
fun setPackageName(packageName: String): DataOrigin.Builder
Sets the package name of the contributing package. Auto-populated by the platform at record insertion time.
Parameters | |
---|---|
packageName |
String: This value cannot be null . |
Return | |
---|---|
DataOrigin.Builder |
This value cannot be null . |