Added in API level 34

Builder


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

Summary

Public constructors

Public methods
DataOrigin

DataOrigin.Builder
setPackageName(packageName: String)

Sets the package name of the contributing package.

Public constructors

Builder

Added in API level 34
Builder()

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.