public final class Buglife
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Buglife.BuglifeException |
| Modifier and Type | Method and Description |
|---|---|
static void |
addAttachment(Attachment attachment)
Queues an attachment for the next bug report draft.
|
static void |
addAttachment(FileAttachment attachment)
Queues a file attachment for the next bug report draft.
|
static FileAttachment |
captureScreenshot()
Captures a screenshot of the current activity.
|
static InvocationMethod |
getInvocationMethod() |
static RetryPolicy |
getRetryPolicy()
Gets the current retry policy .
|
static android.graphics.Bitmap |
getScreenshotBitmap()
Deprecated.
|
static java.lang.String |
getUserEmail()
Returns any user email address that has been set, if any
|
static java.lang.String |
getUserIdentifier()
Returns any user identifier than has been set, if any
|
static void |
initWithApiKey(android.app.Application application,
java.lang.String apiKey)
Enables Buglife bug reporting within your app.
|
static void |
initWithEmail(android.app.Application application,
java.lang.String email)
Call this method with your own email address if you'd like to try out Buglife without signing
up for an account.
|
static void |
putAttribute(java.lang.String key,
java.lang.String value)
Adds custom data to bug reports.
|
static void |
setInputFields(InputField... inputFields)
Configures the input fields to be shown in the bug reporter UI.
|
static void |
setInvocationMethod(InvocationMethod invocationMethod)
Specifies the method for which users initiate the Buglife bug report flow.
|
static void |
setListener(BuglifeListener listener)
Sets a listener for Buglife-related callbacks.
|
static void |
setRetryPolicy(RetryPolicy retryPolicy)
Specifies the retry policy when submitting bug reports.
|
static void |
setUserEmail(java.lang.String userEmail)
Specifies an email for the user that will be submitted with bug reports.
|
static void |
setUserIdentifier(java.lang.String userIdentifier)
Specifies a user identifier that will be submitted with bug reports.
|
static void |
showReporter()
Manually presents the bug reporter UI.
|
static void |
startScreenRecording()
Manually starts the screen recording flow; users can record up to 30 seconds, or tap
the record button to stop recording early.
|
public static void initWithApiKey(android.app.Application application,
java.lang.String apiKey)
application - Your application subclass, usually thisapiKey - Your Buglife API key. You can find this on the Buglife web dashboardpublic static void initWithEmail(android.app.Application application,
java.lang.String email)
application - Your application subclass, usually thisemail - The email address to which bug reports should be sent. This email address
should belong to you or someone on your team.public static void setInvocationMethod(InvocationMethod invocationMethod)
invocationMethod - The invocation methodpublic static InvocationMethod getInvocationMethod()
public static void setUserIdentifier(java.lang.String userIdentifier)
userIdentifier - The user identifier.public static java.lang.String getUserIdentifier()
public static void setUserEmail(java.lang.String userEmail)
userEmail - The user email.public static java.lang.String getUserEmail()
@Deprecated public static android.graphics.Bitmap getScreenshotBitmap()
captureScreenshot() instead.public static FileAttachment captureScreenshot()
File that represents the screenshot. If screenshot failed, this
will return null.public static void addAttachment(Attachment attachment)
attachment - The attachmentpublic static void addAttachment(FileAttachment attachment)
attachment - The attachmentpublic static void putAttribute(java.lang.String key,
java.lang.String value)
key - The attribute keyvalue - The attribute valuepublic static void setInputFields(InputField... inputFields)
inputFields - The input fieldspublic static void setListener(BuglifeListener listener)
listener - The listenerpublic static void showReporter()
public static void startScreenRecording()
public static RetryPolicy getRetryPolicy()
public static void setRetryPolicy(RetryPolicy retryPolicy)
retryPolicy - The retry policy