fun hasInterface(intf: String?, cls: String?): Boolean { return try { hasInterface(Class.forName(intf), Class.forName(cls)) } catch (e: Exception) { false } }
Checks whether the given class implements the given interface .