Games (GYP) Headless Functions
Fetch a recreational matchup
getMatchup(matchupId, onResult)
getMatchup(matchupId, onResult)LucraClient().getMatchup(matchupId = "c32d...") { result ->
when (result) {
is GetMatchupResult.Success -> {
val matchup = result.matchup
Log.d("Lucra SDK", "Matchup status: ${matchup.status}")
}
is GetMatchupResult.Failure -> {
Log.w("Lucra SDK", "Failed to load matchup: ${result.failure}")
}
}
}Create a recreational matchup
createRecreationalGame(gameTypeId, atStake, playStyle, onResult)
createRecreationalGame(gameTypeId, atStake, playStyle, onResult)Accept a versus recreational matchup
acceptVersusRecreationalGame(matchupId, teamId, onResult)
acceptVersusRecreationalGame(matchupId, teamId, onResult)Join a free-for-all recreational matchup
acceptFreeForAllRecreationalGame(matchupId, onResult)
acceptFreeForAllRecreationalGame(matchupId, onResult)Cancel a recreational matchup
cancelRecreationalGame(matchupId, onResult)
cancelRecreationalGame(matchupId, onResult)Result type reference
Result Type
Success Payload
Failure Payload
Last updated
