I am unable to overload a method in the AIDL interface.
I wanted to have 2 functions with the same name but diffrent number of arguments like this:
boolean callMethod(in String pClass, in String pMethod, in String pParam);
void callMethod(in String pClass, in String pMethod);
when I do so, I get an error saying "attempt to redefine method callMethod"
Regards,
AIDL does not support overloading. I did not see any mention of this in the documentation, but Google did clarify this point in the android-platform forum here. You can add new methods to the bottom of your AIDL interface without breaking compatibility.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With