# InAppNotificationViewBinder

Binds views for in-app notifications.

This interface is used to bind the InApp Notification View with the respective data and apply the desired styling.

**Syntax**: `interface InAppNotificationViewBinder`

## Inheritors

| Name                                                                                                           |
| :------------------------------------------------------------------------------------------------------------- |
| [InAppNotificationBannerViewBinder](https://developers.webexconnect.io/docs/inappnotificationbannerviewbinder) |
| [InAppNotificationModalViewBinder](https://developers.webexconnect.io/docs/inappnotificationmodalviewbinder)   |

## Properties

| Name                                                               | Syntax                                              | Description                                                                                                                                             |
| :----------------------------------------------------------------- | :-------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------ |
| callback                                                           | `abstract var callback: InAppNotificationCallback?` | This property is used for [InAppNotificationCallback](https://developers.webexconnect.io/docs/inappnotificationcallback)                                |
| canSwipeToDismiss                                                  | `abstract val canSwipeToDismiss: Boolean`           | This property is used to verify swipe to dismiss is enabled or not                                                                                      |
| contentView                                                        | `abstract val contentView: View?`                   | This property is used to get the content view from [InApp NotificationView Binder](https://developers.webexconnect.io/docs/inappnotificationviewbinder) |
| [pushMessage](https://developers.webexconnect.io/docs/pushmessage) | `abstract val pushMessage: PushMessage?`            | This property is used to get the [PushMessage](https://developers.webexconnect.io/docs/pushmessage)                                                     |
| rootView                                                           | `abstract val rootView: View`                       | This property is used to get the root view from [InAppNotificationViewBinder](https://developers.webexconnect.io/docs/inappnotificationviewbinder)      |

## Functions

| Name                                                                                             | Description                                                                                                                                                                                                                            |
| :----------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [bindMessage](https://developers.webexconnect.io/docs/inappnotificationviewbinder#bindmessage)   | This method binds messages to respective [InApp Notification View Binder](https://developers.webexconnect.io/docs/inappnotificationviewbinder)                                                                                         |
| [setViewStyle](https://developers.webexconnect.io/docs/inappnotificationviewbinder#setviewstyle) | This method is used to set [InApp Notification view style](https://developers.webexconnect.io/docs/inappnotificationviewstyle) to [InAppNotification View Binder](https://developers.webexconnect.io/docs/inappnotificationviewbinder) |

### bindMessage

This method binds messages to respective [InApp Notification View Binder](https://developers.webexconnect.io/docs/inappnotificationviewbinder)

**Syntax**: `abstract fun bindMessage(message: PushMessage)`

**Parameters**:

| Parameters | Type                                                               | Description                                                                    |
| :--------- | :----------------------------------------------------------------- | :----------------------------------------------------------------------------- |
| message    | [PushMessage](https://developers.webexconnect.io/docs/pushmessage) | Content of [Push Message](https://developers.webexconnect.io/docs/pushmessage) |

### setViewStyle

This method is used to set [InApp Notification view style](https://developers.webexconnect.io/docs/inappnotificationviewstyle) to [InAppNotification View Binder](https://developers.webexconnect.io/docs/inappnotificationviewbinder)

**Syntax**: `abstract fun setViewStyle(viewStyle: InAppNotificationViewStyle?)`

**Parameters**:

| Parameters | Type                                                                                             | Description                                                                                                  |
| :--------- | :----------------------------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------------------------- |
| viewStyle  | [InAppNotificationViewStyle](https://developers.webexconnect.io/docs/inappnotificationviewstyle) | Sets the [InApp Notification view style](https://developers.webexconnect.io/docs/inappnotificationviewstyle) |