Uri Launcher

The library for launching a URI.

Dependency libraries

  • Qt5Core
  • runtime-manager-qt5

Features:

  • Open URI with the default handler for its scheme (open), optionally tracking the result via a callback.
  • Open URI, forcing the system "Open With" handler selection dialog (openWith), optionally tracking the result via a callback.
  • Check is valid URI.

Example

class AuroraUriLauncher {
    fun open(uri: String) {
        UriLauncher.open(uri)
    }

    fun openAndTrack(uri: String) {
        UriLauncher.open(uri) { openedUri, success ->
            // handle result
        }
    }

    fun openWithDialog(uri: String) {
        UriLauncher.openWith(uri)
    }
}