fun showDialog( | |
title: String = "", | |
subTitle: String = "", | |
message: String = "", | |
isCancellable: Boolean = true, | |
positiveButton: Button? = null, | |
negativeButton: Button? = null, | |
) { | |
// Your code | |
} | |
fun main() { | |
// Show simple info dialog | |
showDialog( | |
title = "Info", | |
message = "Here's Info" | |
) | |
// Show dialog with button | |
showDialog( | |
title = "Exit", | |
message = "Want to exit application?", | |
positiveButton = Button("Yes"), | |
negativeButton = Button("No"), | |
isCancellable = false | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment