> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SuperOffice.WebApi.IProgressListener

# <a id="SuperOffice_WebApi_IProgressListener" /> Interface IProgressListener

Namespace: [SuperOffice.WebApi](SuperOffice.WebApi.md)\
Assembly: SuperOffice.WebApi.dll

Defines callbacks for web-client progress notifications.

```csharp theme={null}
public interface IProgressListener
```

## Methods

### <a id="SuperOffice_WebApi_IProgressListener_OnError_System_String_System_Exception_" /> OnError(string, Exception)

Called when request fails.

```csharp theme={null}
void OnError(string request, Exception errorMessage)
```

#### Parameters

`request` [string](https://learn.microsoft.com/dotnet/api/system.string)

URL being loaded

`errorMessage` [Exception](https://learn.microsoft.com/dotnet/api/system.exception)

Exception that is being thrown. Probably a <xref href="SuperOffice.WebApi.Authorization.Exceptions.SuperOfficeWebApiException" data-throw-if-not-resolved="false" />.

### <a id="SuperOffice_WebApi_IProgressListener_OnProgress_System_String_System_Single_" /> OnProgress(string, float)

Called during download, and at end to indicate completion.

```csharp theme={null}
void OnProgress(string request, float progress)
```

#### Parameters

`request` [string](https://learn.microsoft.com/dotnet/api/system.string)

URL that is being loaded

`progress` [float](https://learn.microsoft.com/dotnet/api/system.single)

Percent complete (0 to 1)


## Related topics

- [SuperOffice.WebApi.ProgressListener](/en/api/reference/webapi/SuperOffice.WebApi.ProgressListener.md)
- [SuperOffice.WebApi](/en/api/reference/webapi/SuperOffice.WebApi.md)
- [SuperOffice.WebApi.WebApiOptions](/en/api/reference/webapi/SuperOffice.WebApi.WebApiOptions.md)
- [SuperOffice.WebApi.Agents.AgentBase](/en/api/reference/webapi/SuperOffice.WebApi.Agents.AgentBase.md)
- [SuperOffice.WebApi.Agents.IAgentBase](/en/api/reference/webapi/SuperOffice.WebApi.Agents.IAgentBase.md)
- [SuperOffice.WebApi.Agents.ApiAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.ApiAgent.md)
