Added in API level 34

Builder


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

Builder class for ChangeLogsRequest

Summary

Public constructors
Builder(token: String)

Public methods
ChangeLogsRequest

Returns Object of ChangeLogsRequest

ChangeLogsRequest.Builder
setPageSize(pageSize: Int)

Public constructors

Builder

Added in API level 34
Builder(token: String)
Parameters
token String: This value cannot be null.

Public methods

build

Added in API level 34
fun build(): ChangeLogsRequest

Returns Object of ChangeLogsRequest

Return
ChangeLogsRequest This value cannot be null.

setPageSize

Added in API level 34
fun setPageSize(pageSize: Int): ChangeLogsRequest.Builder
Parameters
pageSize Int: number of change logs to be returned, this corresponds to the maximum number of entries to be returned i.e. sum of the response within ChangeLogsResponse

If not set default is 1000 and maximum value is 5000. Value is between 1 and 5000 inclusive

Return
ChangeLogsRequest.Builder This value cannot be null.
Exceptions
java.lang.IllegalArgumentException if requested pageSize > 5000 or < 1