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

trackCart

[androidJvm]\

@JvmStatic

fun trackCart(items: Map<Product, Int>)

Notifies Granify of the contents of the shopper’s cart.

All cart information is required (rather than partial changesets) to sync the customer’s cart with Granify. Ensuring that this information is kept up to date is crucial to enable cart-related campaigns to work.

Placement

This function should be called:

Parameters

androidJvm

   
items A map containing carted products as keys and corresponding cart quantities as values.