Stay organized with collections
Save and categorize content based on your preferences.
InstallReferrerClient.InstallReferrerResponse
public
static
abstract
@interface
InstallReferrerClient.InstallReferrerResponse
implements
Annotation
com.android.installreferrer.api.InstallReferrerClient.InstallReferrerResponse
|
Possible return codes.
Summary
Inherited methods |
From
interface
java.lang.annotation.Annotation
abstract
Class<? extends Annotation>
|
annotationType()
|
abstract
boolean
|
equals(Object arg0)
|
abstract
int
|
hashCode()
|
abstract
String
|
toString()
|
|
Constants
DEVELOPER_ERROR
int DEVELOPER_ERROR
General errors caused by incorrect usage
Constant Value:
3
(0x00000003)
FEATURE_NOT_SUPPORTED
int FEATURE_NOT_SUPPORTED
Install Referrer API not supported by the installed Play Store app.
Constant Value:
2
(0x00000002)
OK
int OK
Success.
Constant Value:
0
(0x00000000)
SERVICE_DISCONNECTED
int SERVICE_DISCONNECTED
Play Store service is not connected now - potentially transient state.
E.g. Play Store could have been updated in the background while your app was still
running. So feel free to introduce your retry policy for such use case. It should lead to a
call to startConnection(InstallReferrerStateListener)
right after or in some time
after you received this code.
Constant Value:
-1
(0xffffffff)
SERVICE_UNAVAILABLE
int SERVICE_UNAVAILABLE
Could not initiate connection to the Install Referrer service.
Constant Value:
1
(0x00000001)
Annotations
Interfaces
Classes
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# InstallReferrerClient.InstallReferrerResponse\n\nSummary: [Constants](#constants) \\| [Inherited Methods](#inhmethods) \\| [\\[Expand All\\]](#) \n\nInstallReferrerClient.InstallReferrerResponse\n=============================================\n\n\n`\npublic\nstatic\n\nabstract\n@interface\nInstallReferrerClient.InstallReferrerResponse\n`\n\n\n`\n\n\nimplements\n\nAnnotation\n\n\n`\n\n|-------------------------------------------------------------------------------|\n| com.android.installreferrer.api.InstallReferrerClient.InstallReferrerResponse |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nPossible return codes.\n\nSummary\n-------\n\n| ### Constants ||\n|-------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `int` | [DEVELOPER_ERROR](/reference/com/android/installreferrer/api/InstallReferrerClient.InstallReferrerResponse#DEVELOPER_ERROR) General errors caused by incorrect usage |\n| `int` | [FEATURE_NOT_SUPPORTED](/reference/com/android/installreferrer/api/InstallReferrerClient.InstallReferrerResponse#FEATURE_NOT_SUPPORTED) Install Referrer API not supported by the installed Play Store app. |\n| `int` | [OK](/reference/com/android/installreferrer/api/InstallReferrerClient.InstallReferrerResponse#OK) Success. |\n| `int` | [SERVICE_DISCONNECTED](/reference/com/android/installreferrer/api/InstallReferrerClient.InstallReferrerResponse#SERVICE_DISCONNECTED) Play Store service is not connected now - potentially transient state. |\n| `int` | [SERVICE_UNAVAILABLE](/reference/com/android/installreferrer/api/InstallReferrerClient.InstallReferrerResponse#SERVICE_UNAVAILABLE) Could not initiate connection to the Install Referrer service. |\n\n| ### Inherited methods |\n|-----------------------|---|\n| From interface ` java.lang.annotation.Annotation ` |-----------------------------------------|-------------------------| | ` abstract Class\u003c? extends Annotation\u003e` | ` annotationType() ` | | ` abstract boolean` | ` equals(Object arg0) ` | | ` abstract int` | ` hashCode() ` | | ` abstract String` | ` toString() ` | ||\n\nConstants\n---------\n\n### DEVELOPER_ERROR\n\n```\nint DEVELOPER_ERROR\n```\n\nGeneral errors caused by incorrect usage\n\n\u003cbr /\u003e\n\nConstant Value:\n\n3\n(0x00000003)\n\n\n### FEATURE_NOT_SUPPORTED\n\n```\nint FEATURE_NOT_SUPPORTED\n```\n\nInstall Referrer API not supported by the installed Play Store app.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n2\n(0x00000002)\n\n\n### OK\n\n```\nint OK\n```\n\nSuccess.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n0\n(0x00000000)\n\n\n### SERVICE_DISCONNECTED\n\n```\nint SERVICE_DISCONNECTED\n```\n\nPlay Store service is not connected now - potentially transient state.\n\nE.g. Play Store could have been updated in the background while your app was still\nrunning. So feel free to introduce your retry policy for such use case. It should lead to a\ncall to [startConnection(InstallReferrerStateListener)](/reference/com/android/installreferrer/api/InstallReferrerClient#startConnection(com.android.installreferrer.api.InstallReferrerStateListener)) right after or in some time\nafter you received this code.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n-1\n(0xffffffff)\n\n\n### SERVICE_UNAVAILABLE\n\n```\nint SERVICE_UNAVAILABLE\n```\n\nCould not initiate connection to the Install Referrer service.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n1\n(0x00000001)\n\n\n-\n\n Annotations\n -----------\n\n - [InstallReferrerClient.InstallReferrerResponse](/reference/com/android/installreferrer/api/InstallReferrerClient.InstallReferrerResponse)\n-\n\n Interfaces\n ----------\n\n - [InstallReferrerStateListener](/reference/com/android/installreferrer/api/InstallReferrerStateListener)\n-\n\n Classes\n -------\n\n - [InstallReferrerClient](/reference/com/android/installreferrer/api/InstallReferrerClient)\n - [InstallReferrerClient.Builder](/reference/com/android/installreferrer/api/InstallReferrerClient.Builder)\n - [ReferrerDetails](/reference/com/android/installreferrer/api/ReferrerDetails)"]]