# Start Recording

This starts the recording and internally it may call PrepareRecording if its not called earlier to this call. If it calls PrepareRecording internally, it may show up permission for the user to allow recording.

```csharp
recorder.StartRecording(callback: (success, error) =>
{
    if (success)
    {
        Debug.Log("Start recording successful.");
    }
    else
    {
        Debug.Log($"Start recording failed with error [{error}]");
    }
});
```

Example

> ```csharp
> using VoxelBusters.ScreenRecorderKit;
>
> IScreenRecorder recorder;
> //... Create instance for IScreenRecorder via ScreenRecorderBuilder
>
> public void StartRecording()
> {
>     recorder.StartRecording(StartRecordingComplete);
> }
>
> private void StartRecordingComplete(bool status, Error error)
> {
>     if (success)
>     {
>         Debug.Log("Start recording successful.");
>     }
>     else
>     {
>         Debug.Log($"Start recording failed with error [{error}]");
>     }
> }
> ```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://assetstore.replaykit.voxelbusters.com/api/start-recording.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
