<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@soulmachines/smwebsdk](./smwebsdk.md) &gt; [ContentAwareness](./smwebsdk.contentawareness.md) &gt; [buildUpdateContentAwarenessRequest](./smwebsdk.contentawareness.buildupdatecontentawarenessrequest.md)

## ContentAwareness.buildUpdateContentAwarenessRequest() method

Builds the required UpdateContentAwareness message that gets sent to the server

**Signature:**

```typescript
buildUpdateContentAwarenessRequest(viewWidth: number, viewHeight: number, videoFrame: ContentAwarenessObjectModel, content: Array<ContentAwarenessObjectModel>): UpdateContentAwarenessRequestBody;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  viewWidth | number | the width of the browser window |
|  viewHeight | number | the height of the browser window |
|  videoFrame | ContentAwarenessObjectModel | an object containing the coordinates of the video element in which the persona exists |
|  content | Array&lt;ContentAwarenessObjectModel&gt; | an array of objects containing the coordinates of the content elements the persona should be aware of |

**Returns:**

[UpdateContentAwarenessRequestBody](./smwebsdk.updatecontentawarenessrequestbody.md)

- UpdateContentAwarenessRequestBody the message body to send

The return value from this function should be passed to scene.sendRequest('updateContentAwareness', body)

