Skip to main content

DeepLinks

Kindclass
Packagebackend.deeplink
Full namebackend.deeplink.DeepLinks
Sourcesource/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.

View source

receive​

static function receive(uri:String):Void
ParameterTypeDefault
uriString—

View source

dispatch​

static function dispatch():Bool

Called only from a fully initialized, idle Title or Main Menu.

View source

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.

View source

Internals​

Private / internal members
FieldTypeStatic
WINDOWS_KEY—yes
initializedBoolyes
pendingNull<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>