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 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 Tue Mar 26 2024 11:16:27 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.