Created
October 7, 2023 09:10
-
-
Save gold24park/e92d9f34cf6b5295125cf665b285800e to your computer and use it in GitHub Desktop.
DialogQueue-3
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 DialogHandler { | |
fun <Req, Res> showDialog( | |
builder: DialogBuilder<Req, Res>, | |
req: Req, | |
priority: DialogQueue.Priority = DialogQueue.Priority.LOW | |
) | |
suspend fun <Res> showDialogForResult( | |
builder: DialogBuilder<Unit, Res>, | |
priority: DialogQueue.Priority = DialogQueue.Priority.LOW | |
): Result<Res> | |
suspend fun <Req, Res> showDialogForResult( | |
builder: DialogBuilder<Req, Res>, | |
req: Req, priority: DialogQueue.Priority = DialogQueue.Priority.LOW | |
): Result<Res> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment