# InAppMessageResult


```
public final class InAppMessageResult
```

<br />

*** ** * ** ***

Results related to in-app messaging.

## Summary

| ### Nested types |
|---|
| `@https://developer.android.com/reference/java/lang/annotation/Retention.html(value = https://developer.android.com/reference/java/lang/annotation/java.lang.annotation.RetentionPolicy.html#SOURCE) public annotation https://developer.android.com/reference/com/android/billingclient/api/InAppMessageResult.InAppMessageResponseCode` Possible response codes. |

| ### Public methods |
|---|---|
| `https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/com/android/billingclient/api/InAppMessageResult#getPurchaseToken()()` Returns token that identifies the purchase to be acknowledged, if any. |
| `int` | `https://developer.android.com/reference/com/android/billingclient/api/InAppMessageResult#getResponseCode()()` Returns response code for the in-app messaging API call. |

## Public methods

### getPurchaseToken

```
public String getPurchaseToken()
```

Returns token that identifies the purchase to be acknowledged, if any.

For example, the purchase token will be returned to uniquely identify the subscription that has been recovered through in-app messaging.

### getResponseCode

```
public int getResponseCode()
```

Returns response code for the in-app messaging API call.