SDL 3.0
SDL_NotificationEvent Struct Reference

#include <SDL_events.h>

Data Fields

SDL_EventType type
Uint32 reserved
Uint64 timestamp
SDL_NotificationID which
const char * action_id

Detailed Description

Notification dialog event structure (event.notification.*)

An action_id value of 'default' for an SDL_EVENT_NOTIFICATION_ACTION_INVOKED event indicates that the notification was interacted with without selecting a specific action (e.g. the body of the notification was clicked on).

Since
This struct is available since SDL 3.6.0.

Definition at line 781 of file SDL_events.h.

Field Documentation

◆ action_id

const char* SDL_NotificationEvent::action_id

The identifier string of the action invoked in the notification dialog.

Definition at line 787 of file SDL_events.h.

◆ reserved

Uint32 SDL_NotificationEvent::reserved

Definition at line 784 of file SDL_events.h.

◆ timestamp

Uint64 SDL_NotificationEvent::timestamp

In nanoseconds, populated using SDL_GetTicksNS()

Definition at line 785 of file SDL_events.h.

◆ type

SDL_EventType SDL_NotificationEvent::type

SDL_EVENT_NOTIFICATION_ACTION_INVOKED

Definition at line 783 of file SDL_events.h.

◆ which

SDL_NotificationID SDL_NotificationEvent::which

The ID of the notification that generated this event.

Definition at line 786 of file SDL_events.h.


The documentation for this struct was generated from the following file: