MatchmakingResponse.Builder


public static final class MatchmakingResponse.Builder
extends Object

java.lang.Object
   ↳ android.health.connect.MatchmakingResponse.Builder


Builder for MatchmakingResponse.

Summary

Public constructors

Builder(boolean isMatchmakingPossible)

Creates an instance of Builder.

Public methods

MatchmakingResponse build()

Builds the MatchmakingResponse instance.

MatchmakingResponse.Builder setMatchmakingPossible(boolean isMatchmakingPossible)

Sets whether matchmaking is possible.

Inherited methods

Public constructors

Builder

Added in U Extensions 21
public Builder (boolean isMatchmakingPossible)

Creates an instance of Builder.

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

Public methods

build

Added in U Extensions 21
public MatchmakingResponse build ()

Builds the MatchmakingResponse instance.

Returns
MatchmakingResponse This value cannot be null.

setMatchmakingPossible

Added in U Extensions 21
public MatchmakingResponse.Builder setMatchmakingPossible (boolean isMatchmakingPossible)

Sets whether matchmaking is possible.

Parameters
isMatchmakingPossible boolean

Returns
MatchmakingResponse.Builder This value cannot be null.