public class Bugfender extends Object
Constructor and Description |
---|
Bugfender() |
Modifier and Type | Method and Description |
---|---|
static void |
d(String tag,
String message)
Default Bugfender log method.
|
static void |
e(String tag,
String message)
Error Bugfender log method.
|
static void |
enableLogcatLogging() |
static void |
enableUIEventLogging(Application application) |
static void |
forceSendOnce()
Synchronizes all logs and issues with the server once, regardless if this device is enabled or not.
|
static String |
getDeviceIdentifier()
Get the device identifier generated.
|
static void |
init(Context context,
String applicationToken,
boolean debug)
Initialize the Bugfender SDK with a specific application token.
|
static void |
removeDeviceKey(String key)
Remove a device detail.
|
static void |
sendIssue(String title,
String text)
Sends an issue
|
static void |
setDeviceBoolean(String key,
boolean value)
Sets a device detail with boolean type.
|
static void |
setDeviceFloat(String key,
Float value)
Sets a device detail with double type.
|
static void |
setDeviceInteger(String key,
Integer value)
Sets a device detail with integer type.
|
static void |
setDeviceString(String key,
String value)
Sets a device detail with string type.
|
static void |
setForceEnabled(boolean enabled)
Synchronizes all logs and issues with the server all the time, regardless if this device is enabled or not.
|
static void |
setMaximumLocalStorageSize(long bytes)
Set the maximum space available to store local logs.
|
static void |
w(String tag,
String message)
Warning Bugfender log method.
|
public static void init(Context context, String applicationToken, boolean debug)
context
- Application context.applicationToken
- The application token.debug
- Boolean that represent if bugfender sdk should print the logs in console.public static void setMaximumLocalStorageSize(long bytes)
bytes
- Maximum size.public static void d(String tag, String message)
tag
- String with the tag.message
- String with the message.public static void w(String tag, String message)
tag
- String with the tag.message
- String with the message.public static void e(String tag, String message)
tag
- String with the tag.message
- String with the message.public static void sendIssue(String title, String text)
title
- Short description of the issue.text
- Full details of the issue. Markdown format is accepted.public static void setForceEnabled(boolean enabled)
enabled
- Whether logs and issues should be sent regardless of the Bugfender Console settings.public static void forceSendOnce()
public static String getDeviceIdentifier()
public static void setDeviceBoolean(String key, boolean value)
key
- key.value
- A boolean value.public static void setDeviceString(String key, String value)
key
- key.value
- A string value.public static void setDeviceInteger(String key, Integer value)
key
- key.value
- A integer value.public static void setDeviceFloat(String key, Float value)
key
- key.value
- A double value.public static void removeDeviceKey(String key)
key
- key.public static void enableLogcatLogging()
public static void enableUIEventLogging(Application application)