---
url: /api/kiln/functions/recordStartState.md
---
[Kiln API](../../index.md) / [kiln](../index.md) / recordStartState

# Function: recordStartState()

```ts
function recordStartState(
   app, 
   kind, 
   capture, 
   restore
): void;
```

For plugins: state from outside the simulation that a session starts with (stored saves). A
Recorder captures it when recording starts; a replay restores it before Startup.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `app` | [`App`](../classes/App.md) |
| `kind` | `string` |
| `capture` | () => `unknown` |
| `restore` | (`data`) => `void` |

## Returns

`void`
