AnalyticsReceiver

  • AnalyticsReceiver is a BroadcastReceiver used by Google Analytics.

  • It is only used when correctly declared and enabled in AndroidManifest.xml.

  • It has one public constructorAnalyticsReceiver().

  • It has one public methodonReceive(Context context, Intent intent).

public final classAnalyticsReceiver extendsBroadcastReceiver

ABroadcastReceiver used by Google Analytics. It will only be used when the receiver is correctly declared in AndroidManifest.xml and enabled:

<manifest>   <application>     <!-- ... -->     <receiver android:name="com.google.android.gms.analytics.AnalyticsReceiver"         android:enabled="true">         <intent-filter>             <action android:name="com.google.android.gms.analytics.ANALYTICS_DISPATCH" />         </intent-filter>     </receiver>     <!-- ... -->   </application> </manifest>

Public Constructor Summary

Public Method Summary

void
onReceive(Context context,Intent intent)

Inherited Method Summary

From class android.content.BroadcastReceiver
final void
abortBroadcast()
final void
clearAbortBroadcast()
final boolean
getAbortBroadcast()
final boolean
getDebugUnregister()
final int
getResultCode()
finalString
getResultData()
finalBundle
getResultExtras(boolean arg0)
String
getSentFromPackage()
int
getSentFromUid()
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()
finalClass<?>
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

publicAnalyticsReceiver()

Public Methods

public voidonReceive(Context context,Intent intent)

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-10-31 UTC.