public final class DefaultCrashReporter
- Object
- DefaultCrashReporter
ImplementsCrashReport
A default implementation of the crash reporter that instantly sends the crash
data to the server.
Methods
public static String getErrorText() | The text for the user prompt dialog |
public static void setErrorText(String aErrorText) | The text for the user prompt dialog |
public static String getSendButtonText() | The text for the user prompt dialog |
public static void setSendButtonText(String aSendButtonText) | The text for the user prompt dialog |
public static String getDontSendButtonText() | The text for the user prompt dialog |
public static void setDontSendButtonText(String aDontSendButtonText) | The text for the user prompt dialog |
public static String getCheckboxText() | The text for the user prompt dialog |
public static void setCheckboxText(String aCheckboxText) | The text for the user prompt dialog |
public static void init(boolean promptUser, int frequency) | Installs a crash reporter within the system |
public void exception(Throwable t) | Callback for an exception that was not handled by the developer |
Inherited methods
Method details
getErrorText
public static String getErrorText()The text for the user prompt dialog
Returns
the errorText
setErrorText
public static void setErrorText(String aErrorText)The text for the user prompt dialog
Parameters
aErrorTextString- the errorText to set
getSendButtonText
public static String getSendButtonText()The text for the user prompt dialog
Returns
the sendButtonText
setSendButtonText
public static void setSendButtonText(String aSendButtonText)The text for the user prompt dialog
Parameters
aSendButtonTextString- the sendButtonText to set
getDontSendButtonText
public static String getDontSendButtonText()The text for the user prompt dialog
Returns
the dontSendButtonText
setDontSendButtonText
public static void setDontSendButtonText(String aDontSendButtonText)The text for the user prompt dialog
Parameters
aDontSendButtonTextString- the dontSendButtonText to set
getCheckboxText
public static String getCheckboxText()The text for the user prompt dialog
Returns
the checkboxText
setCheckboxText
public static void setCheckboxText(String aCheckboxText)The text for the user prompt dialog
Parameters
aCheckboxTextString- the checkboxText to set
init
public static void init(boolean promptUser, int frequency)Installs a crash reporter within the system
Parameters
promptUserboolean- indicates whether the user should be prompted on crash reporting
frequencyint- the frequency with which we send the log to the server in debug mode in minutes frequency must be at least 1. Any lower level automatically disables this feature
exception
public void exception(Throwable t)Callback for an exception that was not handled by the developer
Parameters
tThrowable- the exception