> For the complete documentation index, see [llms.txt](https://assetstore.replaykit.voxelbusters.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://assetstore.replaykit.voxelbusters.com/api/initialisation.md).

# 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 %}
