NyDeepLinkHandler class
Handles platform deep links (Android App Links / iOS Universal Links / custom URL schemes / web URLs) and dispatches them through Nylo's router.
Enable via Nylo.useDeepLinks. The handler captures the cold-start URI on
init and subscribes to the warm-start URI stream on listen. Each URI
is offered to the developer's Nylo.onIncomingLink callback (if set),
then routed automatically when the callback returns true or is absent.
Constructors
- NyDeepLinkHandler({String? fallbackRoute, @visibleForTesting AppLinks? appLinks, @visibleForTesting DeepLinkDispatcher? dispatcher})
Properties
- fallbackRoute → String?
-
Route to navigate to when an incoming URI's path is not registered.
If null, falls through to the router's unknown-route handler.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → Future< void> - Stop listening for warm-start URIs.
-
handle(
Uri uri) → Future< void> - Offer the URI to the developer's callback, then dispatch automatically when allowed. Visible for testing; production code goes through init / listen.
-
init(
) → Future< void> - Replay the cold-start URI (if any) through the router.
-
listen(
) → void - Subscribe to warm-start URIs.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited