NativeInterface

open class NativeInterface

Used as the entry point for native code to allow proguard to obfuscate other areas if needed

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun addMetadata(@NonNull tab: String, @NonNull metadata: Map<String, out Any>)
Add metadata to subsequent exception reports with a Hashmap
open fun addMetadata(@NonNull tab: String, @Nullable key: String, @Nullable value: Any)
Add metadata to subsequent exception reports
Link copied to clipboard
open fun clearMetadata(@NonNull section: String, @Nullable key: String)
Remove metadata from subsequent exception reports
Link copied to clipboard
open fun createEvent(@Nullable exc: Throwable, @NonNull client: Client, @NonNull severityReason: SeverityReason): Event
Create an Event object
Link copied to clipboard
open fun deliverReport(@Nullable releaseStageBytes: Array<Byte>, @NonNull payloadBytes: Array<Byte>, @Nullable staticDataBytes: Array<Byte>, @NonNull apiKey: String, isLaunching: Boolean)
Deliver a report, serialized as an event JSON payload.
Link copied to clipboard
open fun getApp(): Map<String, Any>
Retrieve app data from the static Client instance as a Map
Link copied to clipboard
Return the client report app version
Link copied to clipboard
Retrieves a list of stored breadcrumbs from the static Client instance
Link copied to clipboard
Link copied to clipboard
Retrieve the CPU ABI(s) for the current device
Link copied to clipboard
Link copied to clipboard
Retrieve device data from the static Client instance as a Map
Link copied to clipboard
Return which release stages notify
Link copied to clipboard
Return the client report endpoint
Link copied to clipboard
Get the last run info object
Link copied to clipboard
Link copied to clipboard
Retrieves global metadata from the static Client instance as a Map
Link copied to clipboard
Retrieves the directory used to store native crash reports
Link copied to clipboard
Return the client report release stage
Link copied to clipboard
Return the client session endpoint
Link copied to clipboard
Retrieve user data from the static Client instance as a Map
Link copied to clipboard
Ask if an error class is on the configurable discard list.
Link copied to clipboard
open fun leaveBreadcrumb(@NonNull nameBytes: Array<Byte>, @NonNull type: BreadcrumbType)
Leave a "breadcrumb" log message
open fun leaveBreadcrumb(@NonNull message: String, @NonNull type: String, @NonNull metadata: Map<String, Any>)
Leaves a breadcrumb on the static client instance
Link copied to clipboard
Marks the launch period as complete
Link copied to clipboard
open fun notify(@NonNull nameBytes: Array<Byte>, @NonNull messageBytes: Array<Byte>, @NonNull severity: Severity, @NonNull stacktrace: Array<NativeStackframe>)
open fun notify(@NonNull nameBytes: Array<Byte>, @NonNull messageBytes: Array<Byte>, @NonNull severity: Severity, @NonNull stacktrace: Array<StackTraceElement>)
open fun notify(@NonNull name: String, @NonNull message: String, @NonNull severity: Severity, @NonNull stacktrace: Array<NativeStackframe>)
open fun notify(@NonNull name: String, @NonNull message: String, @NonNull severity: Severity, @NonNull stacktrace: Array<StackTraceElement>)
Notifies using the Android SDK
Link copied to clipboard
open fun pauseSession()
Link copied to clipboard
open fun registerSession(startedAt: Long, @Nullable sessionId: String, unhandledCount: Int, handledCount: Int)
Update the current session with a given start time, ID, and event counts
Link copied to clipboard
Link copied to clipboard
open fun setAutoDetectAnrs(autoDetectAnrs: Boolean)
Switches automatic ANR detection on/off after Bugsnag has initialized.
Link copied to clipboard
open fun setAutoNotify(autoNotify: Boolean)
Switches automatic error detection on/off after Bugsnag has initialized.
Link copied to clipboard
open fun setBinaryArch(@NonNull binaryArch: String)
Set the binary arch used in the application
Link copied to clipboard
open fun setClient(@NonNull client: Client)
Caches a client instance for responding to future events
Link copied to clipboard
open fun setContext(@Nullable context: String)
Set the client report context
Link copied to clipboard
open fun setUser(@Nullable idBytes: Array<Byte>, @Nullable emailBytes: Array<Byte>, @Nullable nameBytes: Array<Byte>)
open fun setUser(@Nullable id: String, @Nullable email: String, @Nullable name: String)
Sets the user
Link copied to clipboard
open fun startSession()