Skip to content

Instantly share code, notes, and snippets.

@gold24park
Created October 7, 2023 09:10
Show Gist options
  • Save gold24park/e92d9f34cf6b5295125cf665b285800e to your computer and use it in GitHub Desktop.
Save gold24park/e92d9f34cf6b5295125cf665b285800e to your computer and use it in GitHub Desktop.
DialogQueue-3
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