[ Web Proxy ]
URL:
Viewing: https://developer.android.com/reference/android/health/connect/ReadRecordsRequestUsingIds.Builder [Back]  [Original]

ReadRecordsRequestUsingIds.Builder  |  API reference  |  Android Developers Skip to main content
Essentials Design & Plan Develop Google Play Blog
Search:
Android Studio
Android Developers [Android Developers]
Stay organized with collections Save and categorize content based on your preferences.

ReadRecordsRequestUsingIds.Builder


public static final class ReadRecordsRequestUsingIds.Builder
extends Object

java.lang.Object
   ↳ android.health.connect.ReadRecordsRequestUsingIds.Builder<T extends android.health.connect.datatypes.Record>


Builder class for ReadRecordsRequestUsingIds

Summary

Public constructors

)">Builder(Class<T> recordType)

Public methods

Builder<T> addClientRecordId(String clientRecordId)

Add a client id to the read request.

Builder<T> addId(String id)

Add an UUID to the read request.

ReadRecordsRequestUsingIds<T> build()

Returns Object of ReadRecordsRequestUsingIds

Inherited methods

Public constructors

Builder

Added in API level 34
Also in U Extensions 7
public Builder (Class<T> recordType)

Parameters
recordType Class: Record class for which the id is being set.
This value cannot be null.

Public methods

addClientRecordId

Added in API level 34
Also in U Extensions 7
public Builder<T> addClientRecordId (String clientRecordId)

Add a client id to the read request.

The maximum number of ids in a single ReadRecordsRequestUsingIds that Health Connect accepts is 5000. The limit includes all ids and clientIds.

Parameters
clientRecordId String: identifier that was set while inserting the record.
This value cannot be null.

Returns
Builder<T> This value cannot be null.

See also:

addId

Added in API level 34
Also in U Extensions 7
public Builder<T> addId (String id)

Add an UUID to the read request.

The maximum number of ids in a single ReadRecordsRequestUsingIds that Health Connect accepts is 5000. The limit includes all ids and clientIds.

Parameters
id String: Identifier generated by the platform and returned by ,%20java.util.concurrent.Executor,%20android.os.OutcomeReceiver)">HealthConnectManager.insertRecords
This value cannot be null.

Returns
Builder<T> This value cannot be null.

See also:

build

Added in API level 34
Also in U Extensions 7
public ReadRecordsRequestUsingIds<T> build ()

Returns Object of ReadRecordsRequestUsingIds

Returns
ReadRecordsRequestUsingIds<T> This value cannot be null.

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 2026-08-03 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 2026-08-03 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page