DeepLinks
| Kind | class |
| Package | backend.deeplink |
| Full name | backend.deeplink.DeepLinks |
| Source | source/backend/deeplink/DeepLinks.hx |
Native callbacks only queue requests; safe menu update hooks perform navigation.
Public methods
init
static function init():Void
Arms the platform callbacks that feed receive. This never registers
anything: a launch must not touch the user's registry unattended, so on
Windows the scheme is only claimed from Options -> Misc ("Toggle Deeplink")
through applyRegistration. Android and iOS advertise the scheme in the
manifest / Info.plist at build time and need no runtime step at all.
receive
static function receive(uri:String):Void
| Parameter | Type | Default |
|---|---|---|
uri | String | — |
dispatch
static function dispatch():Bool
Called only from a fully initialized, idle Title or Main Menu.
applyRegistration
static function applyRegistration():Void
Applies the "Toggle Deeplink" preference, called from the Misc menu after the preference has already been flipped. Checking registers this executable as the phoenix:// handler, unchecking deletes the handler. A registration that could not be made is reported and the preference is rolled back, so the checkbox never claims more than the system actually does.
Internals
Private / internal members
| Field | Type | Static |
|---|---|---|
WINDOWS_KEY | — | yes |
initialized | Bool | yes |
pending | Null<String> | yes |
| Method |
|---|
static function registerWindowsProtocol():Bool |
static function unregisterWindowsProtocol():Void |
static inline function protocolCommand(exe:String):String |
static function sameCommand(registered:Null<String>, expected:String):Bool |
static inline function normalizePath(path:String):String |
static function windowsProtocolCommand():Null<String> |