Added in API level 34

Builder


class Builder
kotlin.Any
   ↳ android.health.connect.changelog.ChangeLogTokenRequest.Builder

Builder for ChangeLogTokenRequest

Summary

Public constructors

Public methods
ChangeLogTokenRequest.Builder
addDataOriginFilter(dataOriginFilter: DataOrigin)

ChangeLogTokenRequest.Builder
addRecordType(recordType: Class<out Record!>)

ChangeLogTokenRequest

Returns Object of ChangeLogTokenRequest

Public constructors

Builder

Added in API level 34
Builder()

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 null.

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