Wraps the most important methods of Android Parcel class. More...
| Header: | #include <QAndroidParcel> |
| qmake: | QT += androidextras |
| Since: | Qt 5.10 |
This class was introduced in Qt 5.10.
| QAndroidParcel(const QAndroidJniObject &parcel) | |
| QAndroidParcel() | |
| QAndroidJniObject | handle() const |
| QAndroidBinder | readBinder() const |
| QByteArray | readData() const |
| int | readFileDescriptor() const |
| QVariant | readVariant() const |
| void | writeBinder(const QAndroidBinder &binder) const |
| void | writeData(const QByteArray &data) const |
| void | writeFileDescriptor(int fd) const |
| void | writeVariant(const QVariant &value) const |
The QAndroidParcel is a convenience class that wraps the most important Android Parcel methods.
Wraps the parcel object.
Creates a new object.
The return value is useful to call other Java API which are not covered by this wrapper
Returns the binder as a QAndroidBinder
Returns the data as a QByteArray
Returns the file descriptor
Returns the data as a QVariant
Writes a binder object. This is useful for a client to send to a server a binder which can be used by the server callback the client.
Writes the provided data as a byte array
Writes the provided fd.
Writes the provided value. The value is converted into a QByteArray before is written.
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-5.15/qandroidparcel.html