Last active
November 15, 2020 20:04
-
-
Save arifvn/d4bec5a1b417358e0820e94cc4295692 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
btnPrintMessage.setOnClickListener { | |
nonInline { println("Noninline function has been called") } | |
} | |
// in java code | simplified version | |
btnPrintMessage.setOnClickListener(){ | |
@override | |
void onClick(View v){ | |
noninline(new Function { | |
println("Noninline function has been called") | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment