1. methods list

This commit is contained in:
vadym 2020-08-06 23:17:10 -07:00
parent b9d83dcad4
commit e7f5d528a9

View File

@ -141,11 +141,12 @@ class MainActivity : AppCompatActivity() {
}
val c: Class<*> = dummy.Dummy::class.java
val methods: Array<Method> = c.declaredMethods
Log.d(TAG,"Getting dummy.Dummy class methods list")
if(methods.isEmpty()){
Log.d(TAG,"No class methods found in dummy.Dummy")
} else {
for (i in methods.indices) {
Log.d(TAG, "The method is: " + methods[i].toString())
for (m in methods) {
Log.d(TAG, "The method is: " + m.toString())
}
}
}