public interface InstallReferrerCallback

Receives the answer from an InstallReferrerSource.

Implemented by the framework; an application never implements this.

Methods

public abstract void onReferrer(String rawReferrer, long referrerClickSeconds, long installBeginSeconds)Called with the raw referrer query string the store recorded at install time.
public abstract void onUnavailable(String reason)Called when no referrer can be obtained.

Method details

onReferrer

public abstract void onReferrer(String rawReferrer, long referrerClickSeconds, long installBeginSeconds)
Called with the raw referrer query string the store recorded at install time.

Parameters

rawReferrer String
the undecoded referrer query string, may be empty
referrerClickSeconds long
when the link was clicked, in seconds since the epoch, or 0 when the store did not say
installBeginSeconds long
when the install began, in seconds since the epoch, or 0 when the store did not say

onUnavailable

public abstract void onUnavailable(String reason)
Called when no referrer can be obtained. This is the normal answer on a device with no store client – a sideload, an emulator without store services, or a non-store distribution – and is not an error.

Parameters

reason String
one of the REASON_ constants on Invites