# InstallReferrerClient.InstallReferrerResponse

Summary:[Constants](https://developer.android.com/reference/com/android/installreferrer/api/InstallReferrerClient.InstallReferrerResponse#constants)\|[Inherited Methods](https://developer.android.com/reference/com/android/installreferrer/api/InstallReferrerClient.InstallReferrerResponse#inhmethods)\|[\[Expand All\]](https://developer.android.com/reference/com/android/installreferrer/api/InstallReferrerClient.InstallReferrerResponse#)  

# InstallReferrerClient.InstallReferrerResponse

`
public
static

abstract
@interface
InstallReferrerClient.InstallReferrerResponse
`  
`


implements

Annotation


`

|-------------------------------------------------------------------------------|
| com.android.installreferrer.api.InstallReferrerClient.InstallReferrerResponse |

<br />

*** ** * ** ***

Possible return codes.

## Summary

|                                                                                                                  ### Constants                                                                                                                   ||
|-------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | [DEVELOPER_ERROR](https://developer.android.com/reference/com/android/installreferrer/api/InstallReferrerClient.InstallReferrerResponse#DEVELOPER_ERROR) General errors caused by incorrect usage                                         |
| `int` | [FEATURE_NOT_SUPPORTED](https://developer.android.com/reference/com/android/installreferrer/api/InstallReferrerClient.InstallReferrerResponse#FEATURE_NOT_SUPPORTED) Install Referrer API not supported by the installed Play Store app.  |
| `int` | [OK](https://developer.android.com/reference/com/android/installreferrer/api/InstallReferrerClient.InstallReferrerResponse#OK) Success.                                                                                                   |
| `int` | [SERVICE_DISCONNECTED](https://developer.android.com/reference/com/android/installreferrer/api/InstallReferrerClient.InstallReferrerResponse#SERVICE_DISCONNECTED) Play Store service is not connected now - potentially transient state. |
| `int` | [SERVICE_UNAVAILABLE](https://developer.android.com/reference/com/android/installreferrer/api/InstallReferrerClient.InstallReferrerResponse#SERVICE_UNAVAILABLE) Could not initiate connection to the Install Referrer service.           |

| ### Inherited methods |
|-----------------------|---|
| [![](https://developer.android.com/static/assets/images/styles/disclosure_down.png)](https://developer.android.com/reference/com/android/installreferrer/api/InstallReferrerClient.InstallReferrerResponse#)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

<br />

Constant Value: 3 (0x00000003)  

### FEATURE_NOT_SUPPORTED

```
int FEATURE_NOT_SUPPORTED
```

Install Referrer API not supported by the installed Play Store app.

<br />

Constant Value: 2 (0x00000002)  

### OK

```
int OK
```

Success.

<br />

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)](https://developer.android.com/reference/com/android/installreferrer/api/InstallReferrerClient#startConnection(com.android.installreferrer.api.InstallReferrerStateListener))right after or in some time after you received this code.

<br />

Constant Value: -1 (0xffffffff)  

### SERVICE_UNAVAILABLE

```
int SERVICE_UNAVAILABLE
```

Could not initiate connection to the Install Referrer service.

<br />

Constant Value: 1 (0x00000001)  
-

  ## Annotations

  - [InstallReferrerClient.InstallReferrerResponse](https://developer.android.com/reference/com/android/installreferrer/api/InstallReferrerClient.InstallReferrerResponse)
-

  ## Interfaces

  - [InstallReferrerStateListener](https://developer.android.com/reference/com/android/installreferrer/api/InstallReferrerStateListener)
-

  ## Classes

  - [InstallReferrerClient](https://developer.android.com/reference/com/android/installreferrer/api/InstallReferrerClient)
  - [InstallReferrerClient.Builder](https://developer.android.com/reference/com/android/installreferrer/api/InstallReferrerClient.Builder)
  - [ReferrerDetails](https://developer.android.com/reference/com/android/installreferrer/api/ReferrerDetails)