# Events

You can subscribe to SDK events through component props or programmatically via the `ref`.

| Event                | Description                                      |
| -------------------- | ------------------------------------------------ |
| `onReady`            | Fired when the SDK is initialized and ready      |
| `onConsentChanged`   | Fired whenever the user’s consent status changes |
| `onNoticeShown`      | Fired when the notice is displayed               |
| `onNoticeHidden`     | Fired when the notice is closed                  |
| `onPreferencesShown` | Fired when the preferences dialog is displayed   |
| `onPreferencesSaved` | Fired when preferences are saved                 |
