Interface InstallReferrerCallback


public interface InstallReferrerCallback

Receives the answer from an InstallReferrerSource.

Implemented by the framework; an application never implements this.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onReferrer(String rawReferrer, long referrerClickSeconds, long installBeginSeconds)
    Called with the raw referrer query string the store recorded at install time.
    void
    Called when no referrer can be obtained.
  • Method Details

    • onReferrer

      void onReferrer(String rawReferrer, long referrerClickSeconds, long installBeginSeconds)

      Called with the raw referrer query string the store recorded at install time.

      Parameters
      • rawReferrer: the undecoded referrer query string, may be empty

      • referrerClickSeconds: when the link was clicked, in seconds since the epoch, or 0 when the store did not say

      • installBeginSeconds: when the install began, in seconds since the epoch, or 0 when the store did not say

    • onUnavailable

      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: one of the REASON_ constants on Invites