Stay organized with collections
Save and categorize content based on your preferences.
Builder
class Builder
Builder class for ChangeLogsRequest
Summary
Public constructors
Builder
Builder(token: String)
Parameters |
token |
String: This value cannot be null . |
Public methods
setPageSize
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
|
Exceptions |
java.lang.IllegalArgumentException |
if requested pageSize > 5000 or < 1 |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# ChangeLogsRequest.Builder\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nBuilder\n=======\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/health/connect/changelog/ChangeLogsRequest.Builder \"View this page in Java\") \n\n```\nclass Builder\n```\n\n|---|-----------------------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.health.connect.changelog.ChangeLogsRequest.Builder](#) |\n\nBuilder class for [ChangeLogsRequest](/reference/kotlin/android/health/connect/changelog/ChangeLogsRequest)\n\nSummary\n-------\n\n| Public constructors ||\n|------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [Builder](#Builder(kotlin.String))`(`token:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`)` \u003cbr /\u003e |\n\n| Public methods ||\n|-------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------|\n| [ChangeLogsRequest](/reference/kotlin/android/health/connect/changelog/ChangeLogsRequest) | [build](#build())`()` Returns Object of [ChangeLogsRequest](/reference/kotlin/android/health/connect/changelog/ChangeLogsRequest) |\n| [ChangeLogsRequest.Builder](#) | [setPageSize](#setPageSize(kotlin.Int))`(`pageSize:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` \u003cbr /\u003e |\n\nPublic constructors\n-------------------\n\n### Builder\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nBuilder(token: String)\n```\n\n| Parameters ||\n|---------|----------------------------------------------------------------------------------------------------------------|\n| `token` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html): This value cannot be `null`. |\n\nPublic methods\n--------------\n\n### build\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun build(): ChangeLogsRequest\n```\n\nReturns Object of [ChangeLogsRequest](/reference/kotlin/android/health/connect/changelog/ChangeLogsRequest)\n\n| Return ||\n|-------------------------------------------------------------------------------------------|------------------------------|\n| [ChangeLogsRequest](/reference/kotlin/android/health/connect/changelog/ChangeLogsRequest) | This value cannot be `null`. |\n\n### setPageSize\n\nAdded in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun setPageSize(pageSize: Int): ChangeLogsRequest.Builder\n```\n\n| Parameters ||\n|------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `pageSize` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): 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](/reference/kotlin/android/health/connect/changelog/ChangeLogsResponse) If not set default is 1000 and maximum value is 5000. Value is between 1 and 5000 inclusive |\n\n| Return ||\n|--------------------------------|------------------------------|\n| [ChangeLogsRequest.Builder](#) | This value cannot be `null`. |\n\n| Exceptions ||\n|--------------------------------------|---------------------------------------|\n| `java.lang.IllegalArgumentException` | if requested pageSize \\\u003e 5000 or \\\u003c 1 |"]]