KNotificationPermission

KNotificationPermission Namespace Reference

Functions

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.

Since
6.0

Function Documentation

◆ checkPermission()

Qt::PermissionStatus KNotificationPermission::checkPermission ( )

Check if the current application has permissions to show notifications.

Definition at line 41 of file knotificationpermission.cpp.

◆ requestPermission()

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

Request notification permissions.

Definition at line 46 of file knotificationpermission.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:57:24 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.