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
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, or slug when 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 onDeepLink handler took over), cleared on read — e.g. route it from your home screen once the user has logged in.
dispose() → void
Convenience: parse a deep-link uri for link_click_id and attribute an open, returning the deep-link data. Not needed with linksEnabled, 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.init when linksEnabled; idempotent.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited