# Button

# Button


```
public class Button
```

<br />

*** ** * ** ***

Encapsulates any button used in a Firebase In App Message.

## Summary

| ### Public fields |
|---|---|
| `final @https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html https://developer.android.com/reference/kotlin/java/lang/String.html` | `https://firebase.google.com/docs/reference/android/com/google/firebase/inappmessaging/model/Button#buttonHexColor()` |
| `final @https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html https://firebase.google.com/docs/reference/android/com/google/firebase/inappmessaging/model/Text` | `https://firebase.google.com/docs/reference/android/com/google/firebase/inappmessaging/model/Button#text()` !!!!!WARNING!!!!! We are overriding equality in this class. |

| ### Public methods |
|---|---|
| `@https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html https://developer.android.com/reference/kotlin/java/lang/String.html` | `https://firebase.google.com/docs/reference/android/com/google/firebase/inappmessaging/model/Button#getButtonHexColor()()` Gets the background hex color associated with this button |
| `@https://developer.android.com/reference/kotlin/androidx/annotation/NonNull.html https://firebase.google.com/docs/reference/android/com/google/firebase/inappmessaging/model/Text` | `https://firebase.google.com/docs/reference/android/com/google/firebase/inappmessaging/model/Button#getText()()` Gets the `https://firebase.google.com/docs/reference/android/com/google/firebase/inappmessaging/model/Text` associated with this button |

## Public fields

### buttonHexColor

```
public final @NonNull String buttonHexColor
```

### text

```
public final @NonNull Text text
```

!!!!!WARNING!!!!! We are overriding equality in this class. Please add equality checks for all new private class members.

## Public methods

### getButtonHexColor

```
public @NonNull String getButtonHexColor()
```

Gets the background hex color associated with this button

### getText

```
public @NonNull Text getText()
```

Gets the `https://firebase.google.com/docs/reference/android/com/google/firebase/inappmessaging/model/Text` associated with this button