Scroll to navigation

SDL_ShowNotification(3) SDL3 FUNCTIONS SDL_ShowNotification(3)

NAME

SDL_ShowNotification - Show a system notification with normal priority.

SYNOPSIS

#include <SDL3/SDL_notification.h>
SDL_NotificationID SDL_ShowNotification(const char *title, const char *message, SDL_Surface *image, SDL_NotificationAction *actions, int num_actions);

FUNCTION PARAMETERS

UTF-8 title text, required.
UTF-8 message text, may be NULL.
The image associated with this notification, may be NULL.
An array of actions to attach to the notification, may be NULL.
The number of actions in the actions array.

RETURN VALUE

Returns A non-zero SDL_NotificationID on success or 0 on failure; call SDL_GetError() for more information.

AVAILABILITY

This function is available since SDL 3.6.0.

SEE ALSO

SDL_ShowNotificationWithProperties(3), SDL_NotificationAction(3type), SDL_NotificationEvent(3type)

SDL 3.5.0 Simple Directmedia Layer