Added in API level 34
DataOrigin.Builder
public
static
final
class
DataOrigin.Builder
extends Object
java.lang.Object | |
↳ | android.health.connect.datatypes.DataOrigin.Builder |
See also:
Summary
Public constructors | |
---|---|
Builder()
|
Public methods | |
---|---|
DataOrigin
|
build()
|
DataOrigin.Builder
|
setPackageName(String packageName)
Sets the package name of the contributing package. |
Inherited methods | |
---|---|
Public constructors
Public methods
build
Added in API level 34
public DataOrigin build ()
Returns | |
---|---|
DataOrigin |
DataOrigin 's object
This value cannot be null . |
setPackageName
Added in API level 34
public DataOrigin.Builder setPackageName (String packageName)
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 . |
Returns | |
---|---|
DataOrigin.Builder |
This value cannot be null . |