Class Overview
Tracks Google Play Store install referrals. The receiver needs to be added
to the manifest before the install referrals will be tracked:
<receiver android:name="com.urbanairship.analytics.InstallReceiver" exported="true">
<intent-filter>
<action android:name="com.android.vending.INSTALL_REFERRER" />
</intent-filter>
</receiver>
Only a single receiver is able to handle the "com.android.vending.INSTALL_REFERRER"
action.
To handle multiple receivers, instead of registering the InstallReceiver
, register a custom
receiver that notifies multiple receivers:
// Notify the Airship InstallReceiver
new InstallReceiver().onReceive(context, intent);
// Notify other receivers
new OtherReceiver().onReceive(context, intent);
Summary
[Expand]
Inherited Methods |
From class
android.content.BroadcastReceiver
final
void
|
abortBroadcast()
|
final
void
|
clearAbortBroadcast()
|
final
boolean
|
getAbortBroadcast()
|
final
boolean
|
getDebugUnregister()
|
final
int
|
getResultCode()
|
final
String
|
getResultData()
|
final
Bundle
|
getResultExtras(boolean arg0)
|
final
BroadcastReceiver.PendingResult
|
goAsync()
|
final
boolean
|
isInitialStickyBroadcast()
|
final
boolean
|
isOrderedBroadcast()
|
abstract
void
|
onReceive(Context arg0, Intent arg1)
|
IBinder
|
peekService(Context arg0, Intent arg1)
|
final
void
|
setDebugUnregister(boolean arg0)
|
final
void
|
setOrderedHint(boolean arg0)
|
final
void
|
setResult(int arg0, String arg1, Bundle arg2)
|
final
void
|
setResultCode(int arg0)
|
final
void
|
setResultData(String arg0)
|
final
void
|
setResultExtras(Bundle arg0)
|
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public Constructors
public
InstallReceiver
()
Public Methods