Builder


class Builder
kotlin.Any
   ↳ 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

Public methods
MatchmakingRequest.Builder
addRecordType(recordType: Class<out Record!>)

Adds a record type to the request.

MatchmakingRequest.Builder
addRecordTypes(recordTypes: MutableSet<Class<out Record!>!>)

Adds a list of record types to the request.

MatchmakingRequest

Builds the MatchmakingRequest instance.

Public constructors

Builder

Builder()

Public methods

addRecordType

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

Adds a record type to the request.

Parameters
recordType Class<out Record!>: The record type to add.
This value cannot be null.
Return
MatchmakingRequest.Builder This builder.
This value cannot be null.

addRecordTypes

fun addRecordTypes(recordTypes: MutableSet<Class<out Record!>!>): MatchmakingRequest.Builder

Adds a list of record types to the request.

Parameters
recordTypes MutableSet<Class<out Record!>!>: The list of record types to add.
This value cannot be null.
Return
MatchmakingRequest.Builder This builder.
This value cannot be null.

build

fun build(): MatchmakingRequest

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

Return
MatchmakingRequest A new instance of MatchmakingRequest.
This value cannot be null.