ZenityDialogs

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard

Properties

Link copied to clipboard
open override val dialogInterface: DialogInterface

Functions

Link copied to clipboard
open suspend override fun alert(message: String)

Opens an alert dialog showing a message and an OK button

Link copied to clipboard
suspend fun DialogInterfaceProvider.alert(message: String)
Link copied to clipboard
Link copied to clipboard
open suspend override fun browse(url: URL)

Opens a url using the default web browser

Link copied to clipboard
Link copied to clipboard
open suspend override fun confirm(message: String): Boolean

Opens a dialog with a message requesting the user to accept or cancel. It returns true if the user accepted.

Link copied to clipboard
Link copied to clipboard
open suspend fun exec(vararg args: String): String
Link copied to clipboard
open suspend override fun openFileDialog(filter: FileFilter?, write: Boolean, multi: Boolean, currentDir: VfsFile?): List<VfsFile>

Opens a file dialog for write or not, selecting multiple files and in an optional currentDir allowing to select specific filter files, and returns a list (that may be empty) of files selected by the user

Link copied to clipboard
suspend fun DialogInterfaceProvider.openFileDialog(filter: String? = null, write: Boolean = false, multi: Boolean = false): List<VfsFile>
suspend fun DialogInterfaceProvider.openFileDialog(filter: FileFilter? = null, write: Boolean = false, multi: Boolean = false, currentDir: VfsFile? = null): List<VfsFile>
Link copied to clipboard
open suspend override fun prompt(message: String, default: String): String

Opens a dialog with a message and a default text asking the user to provide a text message and returns it as a String

Link copied to clipboard
suspend fun DialogInterfaceProvider.prompt(message: String, default: String = ""): String