MatchmakingRequest.Builder
public
static
final
class
MatchmakingRequest.Builder
extends Object
| java.lang.Object | |
| ↳ | android.health.connect.MatchmakingRequest.Builder |
Builder class for MatchmakingRequest.
By default, the builder initializes with an empty set of record types, include and exclude data sources.
Summary
Public constructors | |
|---|---|
Builder()
|
|
Public methods | |
|---|---|
MatchmakingRequest.Builder
|
addRecordType(Class<? extends Record> recordType)
Adds a record type to the request. |
MatchmakingRequest.Builder
|
addRecordTypes(Set<Class<? extends Record>> recordTypes)
Adds a list of record types to the request. |
MatchmakingRequest
|
build()
Builds the |
Inherited methods | |
|---|---|
Public constructors
Public methods
addRecordType
public MatchmakingRequest.Builder addRecordType (Class<? extends Record> recordType)
Adds a record type to the request.
| Parameters | |
|---|---|
recordType |
Class: The record type to add.
This value cannot be null. |
| Returns | |
|---|---|
MatchmakingRequest.Builder |
This builder.
This value cannot be null. |
addRecordTypes
public MatchmakingRequest.Builder addRecordTypes (Set<Class<? extends Record>> recordTypes)
Adds a list of record types to the request.
| Parameters | |
|---|---|
recordTypes |
Set: The list of record types to add.
This value cannot be null. |
| Returns | |
|---|---|
MatchmakingRequest.Builder |
This builder.
This value cannot be null. |
build
public MatchmakingRequest build ()
Builds the MatchmakingRequest instance.
By default, MatchmakingRequest.Builder().build() creates a request with an
empty set of record types, included and excluded data sources. See description at HealthConnectManager.createMatchmakingIntent(MatchmakingRequest).
| Returns | |
|---|---|
MatchmakingRequest |
A new instance of MatchmakingRequest.
This value cannot be null. |