Ir al contenido

getRecommendation()

Esta página aún no está disponible en tu idioma.

Methodcom.tryyoursize:tryyoursize-android

The same, with a callback (Java).

public fun getRecommendation(product: String, callback: (Result<Recommendation>) -> Unit)
productStringObligatorio

Your product ID or SKU.

callback(Result<Recommendation>) -> UnitObligatorio

Called once with the result.

tys.getRecommendation("SKU-123") { result ->
result.onSuccess { rec -> if (rec.status == Recommendation.Status.READY) selected = rec.size }
}

¿Te ha resultado útil esta página?