Added in API level 34
Builder
class Builder
kotlin.Any | |
↳ | android.health.connect.changelog.ChangeLogTokenRequest.Builder |
Builder for ChangeLogTokenRequest
Summary
Public constructors | |
---|---|
Builder() |
Public methods | |
---|---|
ChangeLogTokenRequest.Builder |
addDataOriginFilter(dataOriginFilter: DataOrigin) |
ChangeLogTokenRequest.Builder |
addRecordType(recordType: Class<out Record!>) |
ChangeLogTokenRequest |
build() Returns Object of |
Public constructors
Public methods
addDataOriginFilter
Added in API level 34
fun addDataOriginFilter(dataOriginFilter: DataOrigin): ChangeLogTokenRequest.Builder
Parameters | |
---|---|
dataOriginFilter |
DataOrigin: list of package names on which to filter the data.
If not set logs from all the sources will be returned This value cannot be |
Return | |
---|---|
ChangeLogTokenRequest.Builder |
This value cannot be null . |
addRecordType
Added in API level 34
fun addRecordType(recordType: Class<out Record!>): ChangeLogTokenRequest.Builder
Parameters | |
---|---|
recordType |
Class<out Record!>: type of record for which change log is required. At least one record type must be set. This value cannot be null . |
Return | |
---|---|
ChangeLogTokenRequest.Builder |
This value cannot be null . |
build
Added in API level 34
fun build(): ChangeLogTokenRequest
Returns Object of ChangeLogTokenRequest
Return | |
---|---|
ChangeLogTokenRequest |
This value cannot be null . |
Exceptions | |
---|---|
java.lang.IllegalArgumentException |
if record types are empty |