QAndroidService Class

Header: #include <QAndroidService>
qmake: QT += androidextras
Since: Qt 5.10
Inherits: QCoreApplication

This class was introduced in Qt 5.10.

Public Functions

virtual QAndroidBinder *onBind(const QAndroidIntent &intent)
typedef QObjectList
void qAddPostRoutine(QtCleanUpFunction ptr)
QList<T> qFindChildren(const QObject *obj, const QRegExp &regExp)
void qRemovePostRoutine(QtCleanUpFunction ptr)
T qobject_cast(QObject *object)
T qobject_cast(const QObject *object)

Macros

Additional Inherited Members

Detailed Description

The QAndroidService is a convenience class that wraps the most important Android Service methods.

Member Function Documentation

[virtual] QAndroidBinder *QAndroidService::onBind(const QAndroidIntent &intent)

The user must override this method and to return a binder.

The intent parameter contains all the caller information.

The returned binder is used by the caller to perform IPC calls.

Warning: This method is called from Binder's thread which is different from the thread that this object was created.

See also QAndroidBinder::onTransact and QAndroidBinder::transact.