present()
Opens the measuring / try-on window for a product, full screen over activity.
@JvmOverloadspublic fun present(activity: ComponentActivity, product: String, step: OpenStep? = null)Parameters
Section titled “Parameters”activityComponentActivityRequiredAn androidx ComponentActivity.
productStringRequiredYour product ID or SKU.
stepOpenStep?Optional= nullOpenStep.CREATE, IMPROVE or VIEW.
Example
Section titled “Example”tys.present(activity, "SKU-123") // or step = OpenStep.VIEWtys.present(product: "SKU-123") // or step: .view, from: viewControllerpresent("SKU-123"); // or present("SKU-123", "view")await tys.present('SKU-123'); // or step: OpenStep.viewWas this page helpful?
Thank you. We read every answer.