Package-level declarations

Types

Link copied to clipboard

Stateless information set by the notifier about your app can be found on this class. These values can be accessed and amended if necessary.

Link copied to clipboard
class AppWithState(var binaryArch: String?, var id: String?, var releaseStage: String?, var version: String?, var codeBundleId: String?, var buildUuid: String?, var type: String?, var versionCode: Number?, var duration: Number?, var durationInForeground: Number?, var inForeground: Boolean?, var isLaunching: Boolean?) : App

Stateful information set by the notifier about your app can be found on this class. These values can be accessed and amended if necessary.

Link copied to clipboard
Link copied to clipboard

Recognized types of breadcrumbs

Link copied to clipboard
class Bugsnag
Static access to a Bugsnag Client, the easiest way to use Bugsnag in your Android app.
Link copied to clipboard
Sends an error report to Bugsnag for each StrictMode thread policy violation that occurs in your app.
Link copied to clipboard
Sends an error report to Bugsnag for each StrictMode VM policy violation that occurs in your app.
Link copied to clipboard
open class Client : MetadataAware, CallbackAware, UserAware, FeatureFlagAware
A Bugsnag Client instance allows you to use Bugsnag in your Android app.
Link copied to clipboard
open class Configuration : CallbackAware, MetadataAware, UserAware, FeatureFlagAware
User-specified configuration storage object, contains information specified at the client level, api-key and endpoint configuration.
Link copied to clipboard
interface Delivery

Implementations of this interface deliver Error Reports and Sessions captured to the Bugsnag API.

Link copied to clipboard
class DeliveryParams(val endpoint: String, val headers: Map<String, String?>)

The parameters which should be used to deliver an Event/Session.

Link copied to clipboard

Return value for the status of a payload delivery.

Link copied to clipboard

Stateless information set by the notifier about the device on which the event occurred can be found on this class. These values can be accessed and amended if necessary.

Link copied to clipboard
class DeviceIdFilePersistence(file: File, deviceIdGenerator: () -> UUID, logger: Logger) : DeviceIdPersistence

This class is responsible for persisting and retrieving a device ID to a file.

Link copied to clipboard
Link copied to clipboard

Stateful information set by the notifier about the device on which the event occurred can be found on this class. These values can be accessed and amended if necessary.

Link copied to clipboard
class EndpointConfiguration(val notify: String = "https://notify.bugsnag.com", val sessions: String = "https://sessions.bugsnag.com")

Set the endpoints to send data to. By default we'll send error reports to https://notify.bugsnag.com, and sessions to https://sessions.bugsnag.com, but you can override this if you are using Bugsnag Enterprise to point to your own Bugsnag endpoints.

Link copied to clipboard
An Error represents information extracted from a Throwable.
Link copied to clipboard

Represents the type of error captured

Link copied to clipboard
class ErrorTypes(var anrs: Boolean = true, var ndkCrashes: Boolean = true, var unhandledExceptions: Boolean = true, var unhandledRejections: Boolean = true)
Link copied to clipboard
open class Event : JsonStream.Streamable, MetadataAware, UserAware, FeatureFlagAware
An Event object represents a Throwable captured by Bugsnag and is available as a parameter on an OnErrorCallback, where individual properties can be mutated before an error report is sent to Bugsnag's API.
Link copied to clipboard

An error report payload.

Link copied to clipboard
Represents a single feature-flag / experiment marker within Bugsnag.
Link copied to clipboard
open class JsonStream : JsonWriter
Link copied to clipboard
class LastRunInfo(val consecutiveLaunchCrashes: Int, val crashed: Boolean, val crashedDuringLaunch: Boolean)

Provides information about the last launch of the application, if there was one.

Link copied to clipboard
interface Logger

Logs internal messages from within the bugsnag notifier.

Link copied to clipboard
open class NativeInterface
Used as the entry point for native code to allow proguard to obfuscate other areas if needed
Link copied to clipboard

Represents a single native stackframe

Link copied to clipboard
class Notifier @JvmOverloads constructor(var name: String = "Android Bugsnag Notifier", var version: String = "6.3.0", var url: String = "https://bugsnag.com") : JsonStream.Streamable

Information about this library, including name and version.

Link copied to clipboard
fun interface OnBreadcrumbCallback

Add a "on breadcrumb" callback, to execute code before every breadcrumb captured by Bugsnag.

Link copied to clipboard
fun interface OnErrorCallback

A callback to be run before error reports are sent to Bugsnag.

Link copied to clipboard
fun interface OnSendCallback

A callback to be invoked before an Event is uploaded to a server. Similar to OnErrorCallback, an OnSendCallback may modify the Event contents or even reject the entire payload by returning false.

Link copied to clipboard
fun interface OnSessionCallback

A callback to be run before sessions are sent to Bugsnag.

Link copied to clipboard
interface Plugin

A plugin allows for additional functionality to be added to the Bugsnag SDK.

Link copied to clipboard
class Session : JsonStream.Streamable, UserAware
Represents a contiguous session in an application.
Link copied to clipboard

The severity of an Event, one of "error", "warning" or "info".

Link copied to clipboard

Represents a single stackframe from a Throwable

Link copied to clipboard
sealed class StateEvent
Link copied to clipboard

Types of telemetry that may be sent to Bugsnag for product improvement purposes.

Link copied to clipboard
A representation of a thread recorded in an Event
Link copied to clipboard
Link copied to clipboard

Controls whether we should capture and serialize the state of all threads at the time of an error.

Link copied to clipboard

Information about the current user of your application.