Class AppMetricaLibraryAdapter

java.lang.Object
io.appmetrica.analytics.AppMetricaLibraryAdapter

public class AppMetricaLibraryAdapter extends Object
Adapter for libraries that use AppMetrica.
  • 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