Created
January 31, 2022 09:29
-
-
Save micHar/c2ab5301382e508aa6fe8894e8e085f7 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
interface ToastShowable { | |
fun showToast(context: Context, text: String) = ... | |
} | |
class MainActivity : ComponentActivity(), ToastShowable { | |
override fun onCreate(savedInstanceState: Bundle?) { | |
//... | |
showToast(this, "Le toast") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment