--- a/ui/common/src/commonMain/kotlin/BrowserLauncher.kt Mon May 05 02:56:41 2025 -0400
+++ b/ui/common/src/commonMain/kotlin/BrowserLauncher.kt Mon May 05 03:37:00 2025 -0400
@@ -29,11 +29,22 @@
*/
interface BrowserLauncher {
+ /**
+ * Launch a browser to display [link]
+ */
fun launchUrl(link: String)
+ /**
+ * Signal that [uris] may be launched next
+ *
+ * A [BrowserLauncher] can preload these uris for faster display
+ */
fun mayLaunchUrl(vararg uris: String)
}
+/**
+ * Creates and [androidx.compose.runtime.remember] a [BrowserLauncher]
+ */
@Composable
expect fun rememberBrowserLauncher(): BrowserLauncher
\ No newline at end of file