public class BugBattle
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BugBattle.SEVERITY |
| Modifier and Type | Method and Description |
|---|---|
static void |
attachCustomData(org.json.JSONObject customData)
Attach cusom data, which can be view in the BugBattle dashboard.
|
static void |
attachData(org.json.JSONObject data)
Attach Data to the request.
|
static void |
enablePrivacyPolicy(boolean enable)
Enables the privacy policy check.
|
static void |
enableReplay()
Enable Replay function for BB
Use with care, check performance on phone
|
static BugBattle |
initialise(java.lang.String sdkKey,
BugBattleActivationMethod[] activationMethods,
android.app.Application application)
Initialises the Bugbattle SDK.
|
static BugBattle |
initialise(java.lang.String sdkKey,
BugBattleActivationMethod[] activationMethods,
android.app.Application application,
android.app.Activity activity)
Initialises the Bugbattle SDK.
|
static BugBattle |
initialise(java.lang.String sdkKey,
BugBattleActivationMethod activationMethod,
android.app.Application application)
Initialises the Bugbattle SDK.
|
static void |
logNetwork(java.lang.String urlConnection,
RequestType requestType,
int status,
int duration,
org.json.JSONObject request,
org.json.JSONObject response)
Log network traffic by logging it manually.
|
static void |
sendSilentBugReport(java.lang.String email,
java.lang.String description,
BugBattle.SEVERITY severity)
Send a silent bugreport in the background.
|
static void |
setApiURL(java.lang.String apiUrl)
Sets the API url to your internal Bugbattle server.
|
static void |
setApplicationType(APPLICATIONTYPE applicationType)
Set Application Type
|
static void |
setBitmapCallback(GetBitmapCallback getBitmapCallback)
Customize the way, the Bitmap is generated.
|
static void |
setBugSentCallback(BugSentCallback bugSentCallback)
This method is triggered, when the bugbattle flow is closed
|
static void |
setBugWillBeSentCallback(BugWillBeSentCallback bugWillBeSentCallback)
This is called, when the bugbattle flow is started
|
static void |
setCustomerEmail(java.lang.String email)
Set/Prefill the email address for the user.
|
static void |
setLanguage(java.lang.String language)
Set the language for the BugBattle Report Flow.
|
static void |
setPrivacyPolicyUrl(java.lang.String privacyUrl)
Sets a custom privacy policy url.
|
static void |
startBugReporting()
Manually start the bug reporting workflow.
|
static void |
startBugReporting(android.graphics.Bitmap bitmap)
Starts the bug reporting with a custom screenshot attached.
|
public static BugBattle initialise(java.lang.String sdkKey, BugBattleActivationMethod[] activationMethods, android.app.Application application, android.app.Activity activity)
application - The application (this)sdkKey - The SDK key, which can be found on dashboard.bugbattle.ioactivationMethods - Activation method, which triggers a new bug report.activity - main activitypublic static BugBattle initialise(java.lang.String sdkKey, BugBattleActivationMethod[] activationMethods, android.app.Application application)
application - The application (this)sdkKey - The SDK key, which can be found on dashboard.bugbattle.ioactivationMethods - Activation method, which triggers a new bug report.public static BugBattle initialise(java.lang.String sdkKey, BugBattleActivationMethod activationMethod, android.app.Application application)
application - The application (this)sdkKey - The SDK key, which can be found on dashboard.bugbattle.ioactivationMethod - Activation method, which triggers a new bug report.public static void startBugReporting()
throws BugBattleNotInitialisedException
BugBattleNotInitialisedException - thrown when BugBattle is not initialisedpublic static void startBugReporting(android.graphics.Bitmap bitmap)
bitmap - the image will be used instead of the currentpublic static void attachCustomData(org.json.JSONObject customData)
customData - The data to attach to a bug reportpublic static void setCustomerEmail(java.lang.String email)
email - address, which is fileld in.public static void enablePrivacyPolicy(boolean enable)
enable - Enable the privacy policy.public static void setPrivacyPolicyUrl(java.lang.String privacyUrl)
privacyUrl - The URL pointing to your privacy policy.public static void setApiURL(java.lang.String apiUrl)
apiUrl - url of the internal Bugbattle serverpublic static void setBugWillBeSentCallback(BugWillBeSentCallback bugWillBeSentCallback)
bugWillBeSentCallback - is called when BB is openedpublic static void setBugSentCallback(BugSentCallback bugSentCallback)
bugSentCallback - this callback is called when the flow is calledpublic static void setBitmapCallback(GetBitmapCallback getBitmapCallback)
getBitmapCallback - get the Bitmappublic static void setApplicationType(APPLICATIONTYPE applicationType)
applicationType - "Android", "RN", "Flutter"public static void enableReplay()
public static void setLanguage(java.lang.String language)
language - ISO Country Code eg. "en", "de", "es", "nl"public static void attachData(org.json.JSONObject data)
data - Data, which is addedpublic static void logNetwork(java.lang.String urlConnection,
RequestType requestType,
int status,
int duration,
org.json.JSONObject request,
org.json.JSONObject response)
urlConnection - URL where the request is sent torequestType - GET, POST, PUT, DELETEstatus - status of the response (e.g. 200, 404)duration - duration of the requestrequest - Add the data you want. e.g the body sent in the requestresponse - Response of the call. You can add just the information you want and need.public static void sendSilentBugReport(java.lang.String email,
java.lang.String description,
BugBattle.SEVERITY severity)
email - who sent the bug reportdescription - description of the bugseverity - Severity of the bug "LOW", "MIDDLE", "HIGH"