PdfUrlLauncher

fun interface PdfUrlLauncher

Action that opens an HTTP/HTTPS URL in the platform's default browser. Returned by rememberPdfUrlLauncher and invoked from the hyperlink overlay rendered on top of selected PDF pages — see PdfViewer's hyperlinksEnabled parameter.

The action is platform-aware: on Android it dispatches an Intent.ACTION_VIEW, on iOS it calls UIApplication.openURL. Both fall through silently when the URL cannot be opened (malformed, scheme not handled by any app), since a viewer mid-render is the wrong place to surface a system-level error to the user.

Functions

Link copied to clipboard
abstract operator fun invoke(url: String)