Scroll to navigation

SDL_NotificationAction(3type) SDL3 DATATYPES SDL_NotificationAction(3type)

NAME

SDL_NotificationAction - Notification structure describing actions that can be used to allow users to interact with notification dialogs.

SYNOPSIS

#include <SDL3/SDL_notification.h>
typedef union SDL_NotificationAction
{
    SDL_NotificationActionType type;

    struct
    {
        SDL_NotificationActionType type; /**< SDL_NOTIFICATION_ACTION_TYPE_BUTTON */
        const char *action_id;           /**< The identifier string for the button. 'default' is a reserved identifier and must not be used. */
        const char *action_label;        /**< The localized label for the button associated with the action, in UTF-8 encoding. */
    } button;

    Uint8 padding[128];
} SDL_NotificationAction;

DESCRIPTION

Exactly How they are presented depends on the platform and implementation.

User interactions with a notification are reported via events with the type SDL_EVENT_NOTIFICATION_ACTION_INVOKED.

Action types: - button: A button with a localized text label, which generates feedback when activated.

SEE ALSO

SDL_NotificationEvent(3type), SDL_NotificationActionType(3)

SDL 3.5.0 Simple Directmedia Layer