getRecommendation()
Esta página aún no está disponible en tu idioma.
The same, with a callback (Java).
public fun getRecommendation(product: String, callback: (Result<Recommendation>) -> Unit)Parameters
Section titled “Parameters”productStringObligatorioYour product ID or SKU.
callback(Result<Recommendation>) -> UnitObligatorioCalled once with the result.
Example
Section titled “Example”tys.getRecommendation("SKU-123") { result -> result.onSuccess { rec -> if (rec.status == Recommendation.Status.READY) selected = rec.size }}¿Te ha resultado útil esta página?
Gracias. Leemos todas las respuestas.