How to access Activity.this in Kotlin?

Posted by Andre Scott | Updated on

Want to access Activity.this in Kotlin? You can get a reference to your MainActivity object in Kotlin by using a qualified this. e.g.:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers