public class ModuleCrash extends ModuleBase
| Modifier and Type | Class and Description |
|---|---|
static class |
ModuleCrash.CrashType |
| Modifier and Type | Field and Description |
|---|---|
protected InternalConfig |
config |
protected CrashProcessor |
crashProcessor |
protected long |
started |
| Constructor and Description |
|---|
ModuleCrash() |
| Modifier and Type | Method and Description |
|---|---|
static void |
crashTest(ModuleCrash.CrashType type) |
java.lang.Integer |
getFeature() |
void |
init(InternalConfig config)
All initialization must be done in this method, not constructor.
|
void |
onContextAcquired(CtxCore ctx)
SDK got a first context.
|
CrashImplCore |
onCrash(CtxCore ctx,
CrashImplCore crash) |
CrashImplCore |
onCrash(CtxCore ctx,
java.lang.Throwable t,
boolean fatal,
java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> segments,
java.lang.String... logs) |
static void |
putCrashIntoParams(CrashImplCore crash,
Params params) |
void |
stop(CtxCore ctx,
boolean clear)
App user decided to opt out from analytics or developer changed important preferences.
|
isActive, onActivityCreated, onActivityDestroyed, onActivityPaused, onActivityResumed, onActivitySaveInstanceState, onActivityStarted, onActivityStopped, onConfigurationChanged, onDeviceId, onLimitedContextAcquired, onRequest, onRequestCompleted, onSessionBegan, onSessionEnded, onUserChangedprotected long started
protected InternalConfig config
protected CrashProcessor crashProcessor
public void init(InternalConfig config)
Moduleinit in interface Moduleinit in class ModuleBaseconfig - Countly configuration object: can be stored locally if needed.public void stop(CtxCore ctx, boolean clear)
ModuleStorable files if clear is truestop in interface Modulestop in class ModuleBasectx - CtxCore to run inclear - true if module must clear it's data files, false otherwisepublic void onContextAcquired(CtxCore ctx)
ModuleApplication#onCreate())onContextAcquired in interface ModuleonContextAcquired in class ModuleBasectx - CtxCore with application instancepublic java.lang.Integer getFeature()
public CrashImplCore onCrash(CtxCore ctx, java.lang.Throwable t, boolean fatal, java.lang.String name, java.util.Map<java.lang.String,java.lang.String> segments, java.lang.String... logs)
public CrashImplCore onCrash(CtxCore ctx, CrashImplCore crash)
public static void putCrashIntoParams(CrashImplCore crash, Params params)
public static void crashTest(ModuleCrash.CrashType type)