Client
A Bugsnag Client instance allows you to use Bugsnag in your Android app. Typically you'd instead use the static access provided in the Bugsnag class.
Example usage: Client client = new Client(this, "your-api-key"); client.notify(new RuntimeException("something broke!"));See also
Functions
Link copied to clipboard
Add a single feature flag with no variant.
Add a single feature flag with an optional variant.
Link copied to clipboard
Add a collection of feature flags.
Link copied to clipboard
Adds a map of multiple metadata key-value pairs to the specified section.
Adds the specified key and value in the specified section.
Link copied to clipboard
Add an "on breadcrumb" callback, to execute code before every breadcrumb captured by Bugsnag.
Link copied to clipboard
Add a "on error" callback, to execute code at the point where an error report is captured in Bugsnag.
Link copied to clipboard
Add an "on session" callback, to execute code before every session captured by Bugsnag.
Link copied to clipboard
Remove a single feature flag regardless of its current status.
Link copied to clipboard
Clear all of the feature flags.
Link copied to clipboard
Removes all the data from the specified section.
Removes data with the specified key from the specified section.
Link copied to clipboard
Returns the current buffer of breadcrumbs that will be sent with captured events.
Link copied to clipboard
Bugsnag uses the concept of "contexts" to help display and group your errors.
Link copied to clipboard
Link copied to clipboard
Leave a "breadcrumb" log message, representing an action that occurred in your app, to aid with debugging.
open fun leaveBreadcrumb(@NonNull message: String, @NonNull metadata: Map<String, Any>, @NonNull type: BreadcrumbType)
Leave a "breadcrumb" log message representing an action or event which occurred in your app, to aid with debugging
Link copied to clipboard
Informs Bugsnag that the application has finished launching.
Link copied to clipboard
Pauses tracking of a session.
Link copied to clipboard
Removes a previously added "on breadcrumb" callback
Link copied to clipboard
Removes a previously added "on error" callback
Link copied to clipboard
Removes a previously added "on session" callback
Link copied to clipboard
Resumes a session which has previously been paused, or starts a new session if none exists.
Link copied to clipboard
Bugsnag uses the concept of "contexts" to help display and group your errors.
Link copied to clipboard
Starts tracking a new session.