christophsturm
12/14/2020, 4:11 PMobject Blah {
val context = context()
}
how can i get the name of the object (“Blah”) from the context method?Marc Knaup
12/14/2020, 4:13 PMfun Any.context(): Context {
val name = this::class.simpleName
return …
}
christophsturm
12/14/2020, 4:14 PM