QAndroidService Class
Header: | #include <QAndroidService> |
qmake: | QT += androidextras |
Since: | Qt 5.10 |
Inherits: | QCoreApplication |
Public Functions
QAndroidService(int &argc, char **argv) | |
virtual | ~QAndroidService() |
virtual QAndroidBinder * | onBind(const QAndroidIntent &intent) |
- 3 public functions inherited from QCoreApplication
- 32 public functions inherited from QObject
Additional Inherited Members
- 5 properties inherited from QCoreApplication
- 1 property inherited from QObject
- 1 public slot inherited from QCoreApplication
- 1 public slot inherited from QObject
- 1 signal inherited from QCoreApplication
- 2 signals inherited from QObject
- 1 public variable inherited from QCoreApplication
- 1 public variable inherited from QObject
- 38 static public members inherited from QCoreApplication
- 10 static public members inherited from QObject
- 1 protected function inherited from QCoreApplication
- 9 protected functions inherited from QObject
- 2 protected variables inherited from QObject
Detailed Description
The QAndroidService is a convenience class that wraps the most important Android Service methods.
Member Function Documentation
QAndroidService::QAndroidService(int &argc, char **argv)
Default constructs an instance of QAndroidService.
[virtual]
QAndroidService::~QAndroidService()
Destroys the instance of QAndroidService. The destructor is virtual.
[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.