Skip to content

Instantly share code, notes, and snippets.

@ifucolo
Created January 5, 2023 12:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ifucolo/56dc1404ffc422f58f7fd8300ce5a986 to your computer and use it in GitHub Desktop.
Save ifucolo/56dc1404ffc422f58f7fd8300ce5a986 to your computer and use it in GitHub Desktop.
fun example() {
//once your isGameAvailableListener being called it will return inside of isGameAvailableListener
ifgameavailable(gamecode = "CODE", isGameAvailableListener = { isGameAvailable ->
})
}
fun ifgameavailable(gamecode: String, isGameAvailableListener: (Boolean) -> Unit) {
isGameAvailableListener.invoke(true)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment