# Function callbacks

```
function SaveSettings(string: filePath)
```

Called when the user clicks Apply or Save in the Preferences screen.

```
function ReceiveNotification(string: sourceFileUrl, number: eventType)
```

Called when receive event notifications. view [eventType constants](https://lainez.gitbook.io/luabee/untitled#events) to more info

{% hint style="danger" %}
Due to internal bug in 1.0.1-1.1.1 versions this function is not working properly and pass buggy values in `event: type` argument this bug fixed in 1.2.1
{% endhint %}
