Builder


class Builder
kotlin.Any
   ↳ android.health.connect.MatchmakingResponse.Builder

Builder for MatchmakingResponse.

Summary

Public constructors
Builder(isMatchmakingPossible: Boolean)

Creates an instance of Builder.

Public methods
MatchmakingResponse

Builds the MatchmakingResponse instance.

MatchmakingResponse.Builder
setMatchmakingPossible(isMatchmakingPossible: Boolean)

Sets whether matchmaking is possible.

Public constructors

Builder

Builder(isMatchmakingPossible: Boolean)

Creates an instance of Builder.

Parameters
isMatchmakingPossible Boolean: true if matchmaking is possible, false otherwise.

Public methods

build

fun build(): MatchmakingResponse

Builds the MatchmakingResponse instance.

Return
MatchmakingResponse This value cannot be null.

setMatchmakingPossible

fun setMatchmakingPossible(isMatchmakingPossible: Boolean): MatchmakingResponse.Builder

Sets whether matchmaking is possible.

Return
MatchmakingResponse.Builder This value cannot be null.