SDL Wiki
[ front page | index | search | recent changes | git repo | offline html ]

SDL_ShowNotification

Show a system notification with normal priority.

Header File

Defined in <SDL3/SDL_notification.h>

Syntax

SDL_NotificationID SDL_ShowNotification(const char *title, const char *message, SDL_Surface *image, SDL_NotificationAction *actions, int num_actions);

Function Parameters

const char * title UTF-8 title text, required.
const char * message UTF-8 message text, may be NULL.
SDL_Surface * image The image associated with this notification, may be NULL.
SDL_NotificationAction * actions An array of actions to attach to the notification, may be NULL.
int num_actions The number of actions in the actions array.

Return Value

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

Version

This function is available since SDL 3.6.0.

See Also


CategoryAPI, CategoryAPIFunction, CategoryNotification


[ edit | delete | history | feedback | raw ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.