包裹 Android Parcel 类的最重要方法。 更多...
头: | #include <QAndroidParcel> |
qmake: | QT += androidextras |
Since: | Qt 5.10 |
该类在 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 方法。
包裹 parcel 对象。
创建新对象。
The return value is useful to call other Java API which are not covered by this wrapper
返回 binder 按 QAndroidBinder
返回数据按 QByteArray
返回文件描述符
返回数据按 QVariant
写入 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.