C

QAndroidNotificationAction Class

Wrapper class for an Android Notification's Action. More...

Header: #include <QAndroidNotificationAction>
CMake: find_package(Qt6 REQUIRED COMPONENTS AndroidAutomotiveBase)
target_link_libraries(mytarget PRIVATE Qt6::AndroidAutomotiveBase)
Since: Qt 6.4
Inherits: QObject

Properties

Public Functions

QAndroidNotificationAction(const QJniObject &action, QObject *parent = nullptr)
virtual ~QAndroidNotificationAction() override
QString icon() const
QString title() const

Public Slots

void performAction() const

Detailed Description

Property Documentation

[read-only] icon : const QString

This property holds the icon of the action, as a base64 encoded string.

Access functions:

QString icon() const

[read-only] title : const QString

This property holds the title of the action.

Access functions:

QString title() const

Member Function Documentation

[explicit] QAndroidNotificationAction::QAndroidNotificationAction(const QJniObject &action, QObject *parent = nullptr)

Constructs a QAndroidNotificationAction object with the given parent, that wraps the native action.

[override virtual noexcept] QAndroidNotificationAction::~QAndroidNotificationAction()

The class destructor.

[slot] void QAndroidNotificationAction::performAction() const

Performs the action.

Available under certain Qt licenses.
Find out more.