Stay organized with collections
Save and categorize content based on your preferences.
InstallReferrerStateListener
public
interface
InstallReferrerStateListener
com.android.installreferrer.api.InstallReferrerStateListener
|
Callback for setup process. This listener's onInstallReferrerSetupFinished(int)
method
is called when the setup process is complete.
Summary
Public methods
onInstallReferrerServiceDisconnected
void onInstallReferrerServiceDisconnected ()
Called to notify that connection to install referrer service was lost.
Note: This does not remove install referrer service connection itself - this binding to the
service will remain active, and you will receive a call to onInstallReferrerSetupFinished(int)
when install referrer service is next running and setup
is complete.
onInstallReferrerSetupFinished
void onInstallReferrerSetupFinished (int responseCode)
Called to notify that setup is complete.
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,["# InstallReferrerStateListener\n============================\n\n\n`\npublic\n\n\ninterface\nInstallReferrerStateListener\n`\n\n\n`\n\n\n`\n\n|--------------------------------------------------------------|\n| com.android.installreferrer.api.InstallReferrerStateListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nCallback for setup process. This listener's [onInstallReferrerSetupFinished(int)](/reference/com/android/installreferrer/api/InstallReferrerStateListener#onInstallReferrerSetupFinished(int)) method\nis called when the setup process is complete.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onInstallReferrerServiceDisconnected](/reference/com/android/installreferrer/api/InstallReferrerStateListener#onInstallReferrerServiceDisconnected())`() ` Called to notify that connection to install referrer service was lost. |\n| ` abstract void` | ` `[onInstallReferrerSetupFinished](/reference/com/android/installreferrer/api/InstallReferrerStateListener#onInstallReferrerSetupFinished(int))`(int responseCode) ` Called to notify that setup is complete. |\n\nPublic methods\n--------------\n\n### onInstallReferrerServiceDisconnected\n\n```\nvoid onInstallReferrerServiceDisconnected ()\n```\n\nCalled to notify that connection to install referrer service was lost.\n\nNote: This does not remove install referrer service connection itself - this binding to the\nservice will remain active, and you will receive a call to [onInstallReferrerSetupFinished(int)](/reference/com/android/installreferrer/api/InstallReferrerStateListener#onInstallReferrerSetupFinished(int)) when install referrer service is next running and setup\nis complete.\n\n\u003cbr /\u003e\n\n### onInstallReferrerSetupFinished\n\n```\nvoid onInstallReferrerSetupFinished (int responseCode)\n```\n\nCalled to notify that setup is complete.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `responseCode` | `int`: The response code from [InstallReferrerClient.InstallReferrerResponse](/reference/com/android/installreferrer/api/InstallReferrerClient.InstallReferrerResponse) which returns the status of the setup process. \u003cbr /\u003e |\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)"]]