Skip to main content

set_platform_uri_handler

Function set_platform_uri_handler 

Source
pub fn set_platform_uri_handler(handler: UriHandlerRef)
Expand description

Installs a platform URI handler, replacing any previously installed one.

Registered handlers take precedence over the built-in per-platform opener, so a backend with main-thread UIKit access can open links the app sandbox forbids launching through a subprocess. The iOS backend registers a UIApplication-based opener this way (see cranpose::ios), because spawning open/xdg-open is not available inside the iOS sandbox.