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

SDL_ShowNotificationWithProperties

Show a system notification.

Header File

Defined in <SDL3/SDL_notification.h>

Syntax

SDL_NotificationID SDL_ShowNotificationWithProperties(SDL_PropertiesID props);

Function Parameters

SDL_PropertiesID props the properties to be used when creating this notification.

Return Value

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

Remarks

System notifications are small, asynchronous popup windows that notify the user of some information. How they are displayed is system dependent.

These are the supported properties:

Not all properties are supported by all platforms.

Notifications are available on: - Windows 10 or higher - macOS 10.14 or higher - iOS 11 or higher - *nix platforms that support the org.freedesktop.Notifications, or org.freedesktop.portal.Notification interfaces

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.