<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [ExperienceControlsMutations](./x-components.experiencecontrolsmutations.md) &gt; [setEvents](./x-components.experiencecontrolsmutations.setevents.md)

## ExperienceControlsMutations.setEvents() method

Sets the [ExperienceControlsState.events](./x-components.experiencecontrolsstate.events.md) property.

**Signature:**

```typescript
setEvents(events: Partial<XEventsTypes>): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  events | Partial&lt;[XEventsTypes](./x-components.xeventstypes.md)<!-- -->&gt; | The new [ExperienceControlsState.events](./x-components.experiencecontrolsstate.events.md)<!-- -->. |

**Returns:**

void

