Skip to content

Instantly share code, notes, and snippets.

@arifvn
Last active November 15, 2020 20:04
Show Gist options
  • Save arifvn/d4bec5a1b417358e0820e94cc4295692 to your computer and use it in GitHub Desktop.
Save arifvn/d4bec5a1b417358e0820e94cc4295692 to your computer and use it in GitHub Desktop.
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