Class FlurryPerformance.HttpInterceptor

java.lang.Object
com.flurry.android.impl.core.performance.HttpLogging.FlurryHttpInterceptor
com.flurry.android.FlurryPerformance.HttpInterceptor
All Implemented Interfaces:
okhttp3.Interceptor
Enclosing class:
FlurryPerformance

public static class FlurryPerformance.HttpInterceptor extends com.flurry.android.impl.core.performance.HttpLogging.FlurryHttpInterceptor
Use Interceptors supported in okhttp3: provide an HttpInterceptor for Flurry that users can add for their OkHttpClient.

 Example:
   OkHttpClient client = new OkHttpClient.Builder()
       .addInterceptor(new FlurryPerformance.HttpInterceptor(MyGroupID))
       .build();
 
The same instance of FlurryPerformance.HttpInterceptor can be used multiple times for addInterceptor.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface okhttp3.Interceptor

    okhttp3.Interceptor.Chain, okhttp3.Interceptor.Companion
  • Field Summary

    Fields inherited from interface okhttp3.Interceptor

    Companion
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Set group ID for further event logging.

    Methods inherited from class com.flurry.android.impl.core.performance.HttpLogging.FlurryHttpInterceptor

    intercept

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HttpInterceptor

      public HttpInterceptor(String id)
  • Method Details

    • setId

      public void setId(String id)
      Set group ID for further event logging.
      Overrides:
      setId in class com.flurry.android.impl.core.performance.HttpLogging.FlurryHttpInterceptor
      Parameters:
      id - the group ID