public class NDCrash
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
NDCrash.OnCrashCallback
Crash callback that allows to process a report immediately after crash.
|
| Constructor and Description |
|---|
NDCrash() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
deInitializeInProcess()
De-initializes NDCrash library signal handler using in-process mode.
|
static boolean |
deInitializeOutOfProcess(android.content.Context context)
De-initializes NDCrash library signal handler using out-of-process mode.
|
static NDCrashError |
initializeInProcess(java.lang.String crashReportPath,
NDCrashUnwinder unwinder)
Initializes NDCrash library signal handler using in-process mode.
|
static NDCrashError |
initializeOutOfProcess(android.content.Context context,
java.lang.String crashReportPath,
NDCrashUnwinder unwinder,
java.lang.Class<? extends NDCrashService> serviceClass)
Initializes NDCrash library signal handler using out-of-process mode.
|
public static NDCrashError initializeInProcess(java.lang.String crashReportPath, NDCrashUnwinder unwinder)
crashReportPath - Path where a crash report is saved.unwinder - Used unwinder. See ndcrash_unwinder type in ndcrash.h.public static boolean deInitializeInProcess()
public static NDCrashError initializeOutOfProcess(android.content.Context context, java.lang.String crashReportPath, NDCrashUnwinder unwinder, java.lang.Class<? extends NDCrashService> serviceClass)
context - Context instance. Used to determine a socket name and start a service.crashReportPath - Path where a crash report is saved.unwinder - Used unwinder. See ndcrash_unwinder type in ndcrash.h.serviceClass - Class of background service. Used when we need to use a custom subclass
of NDCrashUnwinder to use as a background service. If you didn't subclass
NDCrashUnwinder, please pass NDCrashUnwinder.class.public static boolean deInitializeOutOfProcess(android.content.Context context)
context - Context instance. Used to stop a service.