public class LogManager
extends java.lang.Object
implements android.arch.lifecycle.LifecycleObserver
LogManager class provides access to all HTTP requests sent from the SDK. You can
either start the activity to show the HTTP request or export the HTTP request history for up to
the past 7 days in JSON format.| Constructor and Description |
|---|
LogManager(android.support.v7.app.AppCompatActivity appCompatActivity)
Constructor for an
LogManager object with the lifecycle set. |
LogManager(android.support.v4.app.Fragment fragment)
Constructor for an
LogManager object with the lifecycle set. |
LogManager(android.arch.lifecycle.Lifecycle lifecycle)
Constructor for an
LogManager object with the lifecycle set. |
| Modifier and Type | Method and Description |
|---|---|
void |
export(SingleCallback<java.lang.String> callback)
Returns a String of the absolute filepath to the JSON file, which contains the HTTP request
history for the past 7 days.
|
static void |
showHttpRequestLog(android.content.Context context)
Launches the activity to show all the HTTP request history.
|
public LogManager(android.arch.lifecycle.Lifecycle lifecycle)
LogManager object with the lifecycle set.lifecycle - See Lifecyclepublic LogManager(android.support.v7.app.AppCompatActivity appCompatActivity)
LogManager object with the lifecycle set.appCompatActivity - See AppCompatActivitypublic LogManager(android.support.v4.app.Fragment fragment)
LogManager object with the lifecycle set.fragment - See Fragmentpublic void export(SingleCallback<java.lang.String> callback)
callback - the callback to receive the absolute filepath to the JSON file, which
contains the HTTP request history for the past 7 dayspublic static void showHttpRequestLog(@NonNull
android.content.Context context)
context - the Android application Context or any class that is extended from
Context