How do I define a custom class with Parcelable using Stable AIDL?

176 Views Asked by At

With the introduction of Stable AIDL, defined parcelables are required to be structured (Parcelables with their fields defined in AIDL are called structured parcelables). https://source.android.com/docs/core/architecture/aidl/stable-aidl

For instance, earlier we could define a custom header and implementation by providing an AIDL file that points to the header for your custom object using the cpp_header directive. This is not allowed with Stable AIDL.

How do I make the similar with Stable AIDL?

Basically this is what I try to achieve but with Stable AIDL. AIDL interface between Java and C++

1

There are 1 best solutions below

0
wic On BEST ANSWER