NativeInterface

open class NativeInterface

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

Functions

addMetadata
Link copied to clipboard
open fun addMetadata(@NonNull() tab: String, @Nullable() key: String, @Nullable() value: Any)
Add metadata to subsequent exception reports
clearMetadata
Link copied to clipboard
open fun clearMetadata(@NonNull() section: String, @Nullable() key: String)
Remove metadata from subsequent exception reports
createEvent
Link copied to clipboard
open fun createEvent(@Nullable() exc: Throwable, @NonNull() client: Client, @NonNull() severityReason: SeverityReason): Event
deliverReport
Link copied to clipboard
open fun deliverReport(@Nullable() releaseStageBytes: Array<Byte>, @NonNull() payloadBytes: Array<Byte>, @NonNull() apiKey: String, isLaunching: Boolean)
Deliver a report, serialized as an event JSON payload.
getApp
Link copied to clipboard
open fun getApp(): Map<String, Any>
Retrieve app data from the static Client instance as a Map
getAppVersion
Link copied to clipboard
open fun getAppVersion(): String
Return the client report app version
getBreadcrumbs
Link copied to clipboard
open fun getBreadcrumbs(): List<Breadcrumb>
Retrieves a list of stored breadcrumbs from the static Client instance
getContext
Link copied to clipboard
open fun getContext(): String
getCpuAbi
Link copied to clipboard
open fun getCpuAbi(): Array<String>
Retrieve the CPU ABI(s) for the current device
getCurrentSession
Link copied to clipboard
open fun getCurrentSession(): Session
getDevice
Link copied to clipboard
open fun getDevice(): Map<String, Any>
Retrieve device data from the static Client instance as a Map
getEnabledReleaseStages
Link copied to clipboard
open fun getEnabledReleaseStages(): Collection<String>
Return which release stages notify
getEndpoint
Link copied to clipboard
open fun getEndpoint(): String
Return the client report endpoint
getLastRunInfo
Link copied to clipboard
open fun getLastRunInfo(): LastRunInfo
Get the last run info object
getLogger
Link copied to clipboard
open fun getLogger(): Logger
getMetadata
Link copied to clipboard
open fun getMetadata(): Map<String, Any>
Retrieves global metadata from the static Client instance as a Map
getNativeReportPath
Link copied to clipboard
open fun getNativeReportPath(): String
Retrieves the directory used to store native crash reports
getReleaseStage
Link copied to clipboard
open fun getReleaseStage(): String
Return the client report release stage
getSessionEndpoint
Link copied to clipboard
open fun getSessionEndpoint(): String
Return the client session endpoint
getUser
Link copied to clipboard
open fun getUser(): Map<String, String>
Retrieve user data from the static Client instance as a Map
leaveBreadcrumb
Link copied to clipboard
open fun leaveBreadcrumb(@NonNull() nameBytes: Array<Byte>, @NonNull() type: BreadcrumbType)
Leave a "breadcrumb" log message
open fun leaveBreadcrumb(@NonNull() name: String, @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
markLaunchCompleted
Link copied to clipboard
open fun markLaunchCompleted()
Marks the launch period as complete
notify
Link copied to clipboard
open fun notify(@NonNull() nameBytes: Array<Byte>, @NonNull() messageBytes: Array<Byte>, @NonNull() severity: Severity, @NonNull() stacktrace: Array<StackTraceElement>)
Notifies using the Android SDK
open fun notify(@NonNull() name: String, @NonNull() message: String, @NonNull() severity: Severity, @NonNull() stacktrace: Array<StackTraceElement>)
Notifies using the Android SDK
pauseSession
Link copied to clipboard
open fun pauseSession()
registerSession
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
resumeSession
Link copied to clipboard
open fun resumeSession(): Boolean
setAutoDetectAnrs
Link copied to clipboard
open fun setAutoDetectAnrs(autoDetectAnrs: Boolean)
Switches automatic ANR detection on/off after Bugsnag has initialized.
setAutoNotify
Link copied to clipboard
open fun setAutoNotify(autoNotify: Boolean)
Switches automatic error detection on/off after Bugsnag has initialized.
setBinaryArch
Link copied to clipboard
open fun setBinaryArch(@NonNull() binaryArch: String)
Set the binary arch used in the application
setContext
Link copied to clipboard
open fun setContext(@Nullable() context: String)
Set the client report context
setUser
Link copied to clipboard
open fun setUser(@Nullable() idBytes: Array<Byte>, @Nullable() emailBytes: Array<Byte>, @Nullable() nameBytes: Array<Byte>)
Sets the user
open fun setUser(@Nullable() id: String, @Nullable() email: String, @Nullable() name: String)
Sets the user
startSession
Link copied to clipboard
open fun startSession()

Properties

client
Link copied to clipboard
private open var client: Client
Static reference used if not using Bugsnag.