> For the complete documentation index, see [llms.txt](https://docs.sentiance.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sentiance.com/sdk/api-reference/android/usercontextapi/usercontextupdatelistener.md).

# UserContextUpdateListener

An interface for handling updates to the user's context. Used with [`UserContextApi.addUserContextUpdateListener(UserContextUpdateListener)`](/sdk/api-reference/android/usercontextapi.md)

## UserContextUpdateListener API

### `onUserContextUpdated()`

> ```java
> void onUserContextUpdated(List<UserContextUpdateCriteria> criteria, UserContext userContext)
> ```
>
> Returns the new user context.

| Parameters  |                                                                                                                                            |
| ----------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| criteria    | A list that filters which [`UserContextUpdateCriteria`](/sdk/api-reference/android/usercontextapi/usercontextupdatecriteria.md) to return. |
| userContext | A [`UserContext`](/sdk/api-reference/android/usercontext.md) object that contains the user's context.                                      |
