Is there an Android analogue of the respondsToSelector: method from Objective C?
In Java you usually expect some interface where the method is defined. So you have the guarantee, that the object passed implements the method.
If you absolutely need the dynamic nature, use Java's reflection.
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