C

QAndroidIntentInfo Class

Utility class to hold information about intents. (Technical Preview). More...

Header: #include <QAndroidIntentInfo>
CMake: find_package(Qt6 REQUIRED COMPONENTS AndroidAutomotiveBase)
target_link_libraries(mytarget PRIVATE Qt6::AndroidAutomotiveBase)
Since: QtAndroidAutomotive 6.5
In QML: androidIntentInfo

Properties

Public Functions

QAndroidIntentInfo()
QAndroidIntentInfo(const QAndroidIntentInfo &other)
QAndroidIntentInfo(QAndroidIntentInfo &&other)
virtual ~QAndroidIntentInfo()
QString action() const
QStringList categories() const
QString className() const
QString data() const
QVariantMap extras() const
QString packageName() const
void setAction(const QString &action)
void setCategories(const QStringList &categories)
void setClassName(const QString &className)
void setData(const QString &newData)
void setExtras(const QVariantMap &extras)
void setPackageName(const QString &packageName)
QAndroidIntentInfo &operator=(QAndroidIntentInfo &&other)
QAndroidIntentInfo &operator=(const QAndroidIntentInfo &other)

Detailed Description

QAndroidIntentInfo is used by QAndroidBroadcastTransmitter and QAndroidBroadcastReceiver to send and receive broadcast intent information. This class offers a limited subset of the API provided by Android Intents.

See also QAndroidBroadcastReceiver::received and QAndroidBroadcastTransmitter::sendBroadcast.

Property Documentation

action : QString

This property holds the action of this intent.

Access functions:

QString action() const
void setAction(const QString &action)

categories : QStringList

This property holds the categories of this intent.

Access functions:

QStringList categories() const
void setCategories(const QStringList &categories)

className : QString

This property holds the class name of this intent.

Access functions:

QString className() const
void setClassName(const QString &className)

data : QString

This property holds the data of this intent.

Access functions:

QString data() const
void setData(const QString &newData)

extras : QVariantMap

This property holds the extras of this intent.

Access functions:

QVariantMap extras() const
void setExtras(const QVariantMap &extras)

packageName : QString

This property holds the package name of this intent.

Access functions:

QString packageName() const
void setPackageName(const QString &packageName)

Member Function Documentation

QAndroidIntentInfo::QAndroidIntentInfo()

Default constructor

QAndroidIntentInfo::QAndroidIntentInfo(const QAndroidIntentInfo &other)

Copy-constructs an instance of QAndroidIntentInfo from other.

QAndroidIntentInfo::QAndroidIntentInfo(QAndroidIntentInfo &&other)

Constructs a new QAndroidIntentInfo instance via a move operation from other.

[virtual noexcept] QAndroidIntentInfo::~QAndroidIntentInfo()

Destroys this instance of QAndroidIntentInfo.

[noexcept] QAndroidIntentInfo &QAndroidIntentInfo::operator=(QAndroidIntentInfo &&other)

Move-assigns other to this QAndroidIntentInfo.

QAndroidIntentInfo &QAndroidIntentInfo::operator=(const QAndroidIntentInfo &other)

Assigns other to this QAndroidIntentInfo and returns a reference to this QAndroidIntentInfo.

Available under certain Qt licenses.
Find out more.