# Button Merchant Library

## Version 1.6.1

The Button Merchant Library for Android provides functionalities to report events and manage user interactions. Below are the key components and their references.

### Main Components

- **[ButtonMerchant](https://building.usebutton.com/button-merchant-android/latest/-button%20-merchant%20-library/com.usebutton.merchant/-button-merchant/index.html)**
- **[ButtonProduct](https://building.usebutton.com/button-merchant-android/latest/-button%20-merchant%20-library/com.usebutton.merchant/-button-product/index.html)**
- **[Order](https://building.usebutton.com/button-merchant-android/latest/-button%20-merchant%20-library/com.usebutton.merchant/-order/index.html)**
- **[User Activity](https://building.usebutton.com/button-merchant-android/latest/-button%20-merchant%20-library/com.usebutton.merchant.module/-button-user-activity/index.html)**

### Exception Handling

- **[ApplicationIdNotFoundException](https://building.usebutton.com/button-merchant-android/latest/-button%20-merchant%20-library/com.usebutton.merchant.exception/-application-id-not-found-exception/index.html)**
- **[ButtonNetworkException](https://building.usebutton.com/button-merchant-android/latest/-button%20-merchant%20-library/com.usebutton.merchant.exception/-button-network-exception/index.html)**
- **[HttpStatusException](https://building.usebutton.com/button-merchant-android/latest/-button%20-merchant%20-library/com.usebutton.merchant.exception/-http-status-exception/index.html)**

### Reporting Events

#### `reportEvent`

```kotlin
open fun reportEvent(
    @NonNull context: Context,
    @NonNull name: String,
    @Nullable properties: Map<String, String>
)
```

Reports an event and associated properties to Button.

#### Parameters
- **context**: a Context instance that can be used to access app resources like SharedPreferences.
- **name**: the name of the event.
- **properties**: Optional key-value pairs to be associated with the event.
