Skip to content

present()

Methodcom.tryyoursize:tryyoursize-android

Opens the measuring / try-on window for a product, full screen over activity.

@JvmOverloads
public fun present(activity: ComponentActivity, product: String, step: OpenStep? = null)
activityComponentActivityRequired

An androidx ComponentActivity.

productStringRequired

Your product ID or SKU.

stepOpenStep?Optional= null

OpenStep.CREATE, IMPROVE or VIEW.

tys.present(activity, "SKU-123") // or step = OpenStep.VIEW

Was this page helpful?