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

SDL_RequestNotificationPermission

Requests permission from the system to display notifications.

Header File

Defined in <SDL3/SDL_notification.h>

Syntax

bool SDL_RequestNotificationPermission(void);

Return Value

(bool) Returns True on success or false on failure; call SDL_GetError() for more information.

Remarks

A return value of true only means that the system supports notifications, and that the request for permission was successfully issued. It does not reflect any user settings to allow or deny notifications.

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.