NexusLinks class
Deep linking & attribution (OneLink-style), automatic with linksEnabled:
- Install — reported once per install on first launch, matched to the link click exactly via the Google Play install referrer on Android, or by the opening link itself, else by the server's fingerprint window.
- Open — every launch or resume from a Nexus link is reported, matched exactly by its click-id.
- Routing — when the app's router could not have seen the link (deferred deep link after install; app opened by the short link itself via App Links / Universal Links), the SDK routes to the link's deep-link value by delivering it as a platform deep link — any Router or Navigator handles it.
Uninstalls are measured server-side (silent push probes); nothing runs here.
Constructors
- NexusLinks(NexusHttp _http, NexusIdentity _id, [NexusConfig? _cfg])
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onLink
→ Stream<
NexusDeepLink> -
Every Nexus deep link as it is resolved (install or open).
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
attribute(
{String type = 'install', String? clickId, String? slug, String? name, String? platform, Map< String, Object?> ? properties}) → Future<Map< String, dynamic> ?> -
Report a conversion. Pass
clickId(from the link) for deterministic attribution, orslugwhen the app was opened by the short link itself; otherwise the server matches by fingerprint. Returns the matched link's deep-link data (or null if unattributed). -
consumePending(
) → NexusDeepLink? -
The last deep link the SDK did NOT route itself (routing off, or the
onDeepLinkhandler took over), cleared on read — e.g. route it from your home screen once the user has logged in. -
dispose(
) → void -
handleDeepLink(
Uri uri, {String type = 'open'}) → Future< Map< String, dynamic> ?> -
Convenience: parse a deep-link
uriforlink_click_idand attribute an open, returning the deep-link data. Not needed withlinksEnabled, which reports opens automatically. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
start(
) → Future< void> -
Wire automatic install/open reporting. Called by
Nexus.initwhenlinksEnabled; idempotent. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited