Last active
January 17, 2020 13:45
-
-
Save kmmraj/5c9756a41b127648c97c93f30e35e19e 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
channel.setMethodCallHandler { methodCall, result -> | |
when (methodCall.method){ | |
"handleMessageBack" -> { | |
this.onBackPressed() | |
} | |
else -> { // Do something else | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment