KNotificationPermission Namespace Reference


KNOTIFICATIONS_EXPORT Qt::PermissionStatus checkPermission ()
KNOTIFICATIONS_EXPORT void requestPermission (QObject *context, const std::function< void(Qt::PermissionStatus)> &callback)

Detailed Description

Check or request permissions to show notifications on platforms where that is necessary.


Function Documentation

◆ checkPermission()

Qt::PermissionStatus KNotificationPermission::checkPermission ( )

Check if the current application has permissions to show notifications.

Definition at line 35 of file knotificationpermission.cpp.

◆ requestPermission()

void KNotificationPermission::requestPermission ( QObject * context,
const std::function< void(Qt::PermissionStatus)> & callback )

Request notification permissions.

Definition at line 40 of file knotificationpermission.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 17 2024 11:52:07 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.