# Register Listeners

#### Set On Recording Available Listener

This listener is used to get a callback a record gets finished and has a result. In the case of Video recording, this will be file path and for Gif recording the result will be GifTexture instance.

<pre class="language-csharp" data-title="For Video Recorder"><code class="lang-csharp">IScreenRecorder recorder;
//... Create video recorder instance via ScreenRecorderBuilder.
//...

<strong>recorder.SetOnRecordingAvailable((result) =>
</strong>        {
            string path = result.Data as string;
            Debug.Log($"File path: {path}");
        });
</code></pre>

{% code title="For GIF Recorder" %}

```csharp
IScreenRecorder recorder;
//... Create GIF recorder instance via ScreenRecorderBuilder.
//...

recorder.SetOnRecordingAvailable((result) =>
        {
            GifTexture gifTexture = result.Data as GifTexture;
            Debug.Log($"Gif Texture : {gifTexture}");
        });
```

{% endcode %}


---

# 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/initialisation.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.
