---
title: ".NET MAUI SDK: Custom actions"
description: "Handle custom actions triggered by the widget with the Gleap .NET MAUI SDK. Follow the integration code examples."
url: https://docs.gleap.ai/en/articles/647-net-maui-sdk-custom-actions
collection: ".NET MAUI (Beta)"
updated: 2026-11-01
language: en
---

# .NET MAUI SDK: Custom actions

Handle custom actions triggered by the widget with the Gleap .NET MAUI SDK. Follow the integration code examples.

We know that the built-in actions (Bug Reporting, Feature Requests, Ratings & Contact Us) might not be enough for certain use cases. For these situations we offer custom actions, which allow you to start any custom action by code.

## Configure a custom action

Open Settings → Widget → Content → Quick actions. Add or open a quick action, choose Custom action, and enter its Custom action name. Use that exact name in the handler below.

Now you need to **set a name for your custom action**. Choose any name you like (it's important that this name matches the name you check in the next step).

![Current messenger quick-action settings in the Pied Piper demo project.](https://staticfiles.gleap.io/p613b5dd730aed737108f87ab/gmAdnE7X2jnNhNn1dRmzvgLczFyPAIF7Qsn2PicWuQHx4eAMN1Er2Il0dBP2VBl1brGt4Zn56QT.png)

## Custom action callback

Once you've set a custom action in the Gleap dashboard, it is called automatically on selection through the user. In order to perform custom code, simply register a listener for the custom action.

```csharp
Gleap.RegisterListener("customActionTriggered", data =>
{
    // data contains the "name" of the triggered action (and an optional "shareToken").
});
```

> **Info:** The custom action **name** is defined by you in the visual widget configurator on the Gleap dashboard.

## Related

- [.NET MAUI SDK setup](https://docs.gleap.ai/en/articles/640-net-maui-sdk-setup.md)
- [.NET MAUI SDK: User identity](https://docs.gleap.ai/en/articles/641-net-maui-sdk-user-identity.md)
- [.NET MAUI SDK: Track events](https://docs.gleap.ai/en/articles/642-net-maui-sdk-track-events.md)
- [.NET MAUI SDK: Track pages](https://docs.gleap.ai/en/articles/643-net-maui-sdk-track-pages.md)
- [.NET MAUI SDK: Forms](https://docs.gleap.ai/en/articles/644-net-maui-sdk-forms.md)
