Package io.appmetrica.analytics
Class AppMetricaLibraryAdapter
java.lang.Object
io.appmetrica.analytics.AppMetricaLibraryAdapter
Adapter for libraries that use AppMetrica.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
activate
(android.content.Context context) Activate AppMetrica without API_KEY in anonymous mode.static void
reportEvent
(String sender, String event, String payload) Sends system report with provided data.static void
setProxy
(io.appmetrica.analytics.impl.proxy.AppMetricaLibraryAdapterProxy proxy) Internal method for unit-tests.
-
Method Details
-
activate
public static void activate(@NonNull android.content.Context context) Activate AppMetrica without API_KEY in anonymous mode.- Parameters:
context
-Context
object. Any application context.
-
reportEvent
public static void reportEvent(@NonNull String sender, @NonNull String event, @NonNull String payload) Sends system report with provided data.- Parameters:
sender
-String
representation of sender.event
- name of the event.payload
- description of the event.
-
setProxy
public static void setProxy(@NonNull io.appmetrica.analytics.impl.proxy.AppMetricaLibraryAdapterProxy proxy) Internal method for unit-tests.- Parameters:
proxy
- Proxy object
-