I have not seen much about abstract classes here in the Java library developer help forum.
I am wrapping a SDK which includes an abstract class with abstract methods. The abstract class is to be used if one wants to support an external audio device, for instance a Watch.
OK, I know the basics i.e. I will need to extend this abstract class and then write the implementation block for the abstract methods.
This abstract class has for example an abstract method with the following signature:
It is supposed to return 0 if configuration was successful otherwise another number to indicate an error-code.
At this phase, there is no need to support an external device and thus there is no code to write for the implementation code/block.
However, if the B4A-developer who is using my wrapper of this SDK wants to support an external audio device, I guess the B4A-developer will probably need the implementation code to be written. So my question is :
can this be done only in the wrapper or can I somehow write my wrapper so the implementation code can be written directly in B4A?
PS: Also among Erel's many projects I don't think I have never seen any example where we write the implementation code of the abstract method in B4A
Thanks.
I am wrapping a SDK which includes an abstract class with abstract methods. The abstract class is to be used if one wants to support an external audio device, for instance a Watch.
OK, I know the basics i.e. I will need to extend this abstract class and then write the implementation block for the abstract methods.
This abstract class has for example an abstract method with the following signature:
B4X:
public abstract int configure(int var1, int var2, int var3);
At this phase, there is no need to support an external device and thus there is no code to write for the implementation code/block.
However, if the B4A-developer who is using my wrapper of this SDK wants to support an external audio device, I guess the B4A-developer will probably need the implementation code to be written. So my question is :
can this be done only in the wrapper or can I somehow write my wrapper so the implementation code can be written directly in B4A?
PS: Also among Erel's many projects I don't think I have never seen any example where we write the implementation code of the abstract method in B4A
Thanks.