# ButtonUserActivity

interface [ButtonUserActivity](https://building.usebutton.com/button-merchant-android/latest/-button%20-merchant%20-library/com.usebutton.merchant.module/-button-user-activity/index.html)

An interface through which user activities can be reported.

## Members

### Functions

[cartViewed](https://building.usebutton.com/button-merchant-android/latest/-button%20-merchant%20-library/com.usebutton.merchant.module/-button-user-activity/cart-viewed.html)

abstract fun [cartViewed](https://building.usebutton.com/button-merchant-android/latest/-button%20-merchant%20-library/com.usebutton.merchant.module/-button-user-activity/cart-viewed.html)(@ [Nullable](https://developer.android.com/reference/kotlin/androidx/annotation/Nullable.html)products: [List](https://developer.android.com/reference/kotlin/java/util/List.html) < [ButtonProductCompatible](https://building.usebutton.com/button-merchant-android/latest/-button%20-merchant%20-library/com.usebutton.merchant/-button-product-compatible/index.html) >)

Report that the user viewed their cart.

[productAddedToCart](https://building.usebutton.com/button-merchant-android/latest/-button%20-merchant%20-library/com.usebutton.merchant.module/-button-user-activity/product-added-to-cart.html)

abstract fun [productAddedToCart](https://building.usebutton.com/button-merchant-android/latest/-button%20-merchant%20-library/com.usebutton.merchant.module/-button-user-activity/product-added-to-cart.html)(@ [Nullable](https://developer.android.com/reference/kotlin/androidx/annotation/Nullable.html)product: [ButtonProductCompatible](https://building.usebutton.com/button-merchant-android/latest/-button%20-merchant%20-library/com.usebutton.merchant/-button-product-compatible/index.html))

Report that the user has added a product to their cart.

[productViewed](https://building.usebutton.com/button-merchant-android/latest/-button%20-merchant%20-library/com.usebutton.merchant.module/-button-user-activity/product-viewed.html)

abstract fun [productViewed](https://building.usebutton.com/button-merchant-android/latest/-button%20-merchant%20-library/com.usebutton.merchant.module/-button-user-activity/product-viewed.html)(@ [Nullable](https://developer.android.com/reference/kotlin/androidx/annotation/Nullable.html)product: [ButtonProductCompatible](https://building.usebutton.com/button-merchant-android/latest/-button%20-merchant%20-library/com.usebutton.merchant/-button-product-compatible/index.html))

Report that the user has viewed a product.
