SizeGuideView (Views)
Esta página aún no está disponible en tu idioma.
The same button as an Android View: set client and product.
Parameters
Section titled “Parameters”contextContextObligatorioattrsAttributeSet?Opcional= nulldefStyleAttrIntOpcional= 0Properties
Section titled “Properties”clientTryYourSize?ObligatorioYour client.
productString?ObligatorioYour product ID or SKU.
variantSizeGuideVariantObligatorioLINK (default) or BUTTON.
labelString?ObligatorioYour own words instead of "Size guide".
onRecommendation((Recommendation) -> Unit)?ObligatorioThe shopper's recommended size, on show and on every change.
Example
Section titled “Example”// Viewsval guide = SizeGuideView(context).apply { client = tys product = "SKU-123" variant = SizeGuideVariant.BUTTON onRecommendation = { rec -> /* … */ }}// UIKitlet guide = SizeGuideButton(client: tys, product: "SKU-123", variant: .button)guide.onRecommendation = { rec in /* … */ }stack.addArrangedSubview(guide)¿Te ha resultado útil esta página?
Gracias. Leemos todas las respuestas.