//Granify Android SDK/com.granifyinc.granifysdk/Granify/setCurrentProduct

setCurrentProduct

[androidJvm]\

@JvmStatic

fun setCurrentProduct(sku: String, productId: String)

Notifies Granify which specific product on a product page is currently selected.

Placement

This function should be called immediately after trackProduct and when the focused item is changed on a product page. This includes:

Parameters

androidJvm

   
sku The SKU of the currently selected product. Must match the ID field in one of the products called in trackProduct.
productId The parent ID of the product.