PlayInstallReferrer class

Reads the referrer Google Play recorded for this install, on Android.

A LinkForty link puts its click id in the referrer of every Play listing it sends a visitor to, so the server can match the install to that click exactly.

Returns null on other platforms, without Play (another store, a sideload), when Play doesn't answer within timeout, and on any error: the install is then matched by fingerprint. A failed read is tried once more within timeout.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Static Methods

read({Future<String?> query()?, bool? isAndroid, Duration timeout = defaultTimeout}) → Future<String?>
Reads the referrer. query and isAndroid are for tests.

Constants

defaultTimeout → const Duration
How long the install report waits for Play, retry included.