Scroll to navigation

SDL_RequestNotificationPermission(3) SDL3 FUNCTIONS SDL_RequestNotificationPermission(3)

NAME

SDL_RequestNotificationPermission - Requests permission from the system to display notifications.

SYNOPSIS

#include <SDL3/SDL_notification.h>
bool SDL_RequestNotificationPermission(void);

DESCRIPTION

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.

RETURN VALUE

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

AVAILABILITY

This function is available since SDL 3.6.0.

SEE ALSO

SDL_ShowNotification(3), SDL_ShowNotificationWithProperties(3), SDL_NotificationAction(3type)

SDL 3.5.0 Simple Directmedia Layer