Wraps the most important methods of Android Parcel class. More...
| Header: | #include <QtCore/private/qandroidextras_p.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Core)target_link_libraries(mytarget PRIVATE Qt6::CorePrivate) |
| qmake: | QT += core-private |
| Since: | Qt 6.2 |
| Status: | Preliminary |
This class is under development and is subject to change.
| QAndroidParcel() | |
| QAndroidParcel(const QJniObject &parcel) | |
| QJniObject | 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.
Creates a new object.
[explicit] QAndroidParcel::QAndroidParcel(const QJniObject &parcel)Wraps the parcel 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.
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: