public abstract class CrashManagerListener extends StringListener
Copyright (c) 2011-2014 Bit Stadium GmbH Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Constructor and Description |
---|
CrashManagerListener() |
Modifier and Type | Method and Description |
---|---|
String |
getContact()
Return contact data or similar; note that this has privacy implications,
so you might want to return nil for release builds!
|
String |
getDescription()
Return additional data, i.e. parts of the system log, the last server
response or similar.
|
int |
getMaxRetryAttempts()
Get the number of max retry attempts to send crashes to HockeyApp.
|
String |
getUserID()
Return a user ID or similar; note that this has privacy implications,
so you might want to return nil for release builds!
|
boolean |
ignoreDefaultHandler()
Return true to ignore the default exception handler, i.e. the user will not
get the alert dialog with the "Force Close" button.
|
boolean |
includeDeviceData()
Return false to remove the device data (OS version, manufacturer, model)
from the crash log, e.g. if some of your testers are using unreleased
devices.
|
boolean |
includeDeviceIdentifier()
Return false to remove the stable device identifier from the
crash log, e.g. if there are privacy concerns.
|
void |
onConfirmedCrashesFound()
Called when the crash manager has found crash logs that were already
confirmed by the user or should have been auto uploaded, but the upload
failed, e.g. in case of a network failure.
|
boolean |
onCrashesFound()
Deprecated.
Replace this method with onNewCrashesFound,
onConfirmedCrashesFound, and shouldAutoUploadCrashReport.
|
void |
onCrashesNotSent()
Called when the crash manager failed to send crashes to HockeyApp, e.g.
|
void |
onCrashesSent()
Called when the crash manager has sent crashes to HockeyApp.
|
boolean |
onHandleAlertView()
Called when dialog should be displayed to inform the user about crash.
|
void |
onNewCrashesFound()
Called when the crash manager has found new crash logs.
|
void |
onUserDeniedCrashes()
Called when the user denied to send crashes to HockeyApp.
|
boolean |
shouldAutoUploadCrashes()
Return true if you want to auto-send crashes.
|
getStringForResource
public boolean ignoreDefaultHandler()
public boolean includeDeviceData()
public boolean includeDeviceIdentifier()
public String getContact()
public String getDescription()
public String getUserID()
public boolean onCrashesFound()
public boolean shouldAutoUploadCrashes()
public void onNewCrashesFound()
public void onConfirmedCrashesFound()
public void onCrashesSent()
public void onCrashesNotSent()
public void onUserDeniedCrashes()
public int getMaxRetryAttempts()
public boolean onHandleAlertView()
Copyright © 2015. All Rights Reserved.