SentryAdapter

A class that wraps the Sentry APIs in order to make them a bit easier to integrate.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Whether Sentry integration has been enabled.

Functions

Link copied to clipboard
fun addEventId(id: SentryId?): Boolean

Register an event ID that a user may provide feedback for.

Link copied to clipboard
Link copied to clipboard
open override fun getKoin(): Koin

Get the associated Koin instance.

Link copied to clipboard
fun hasEventId(id: SentryId?): Boolean

Given an event ID, check whether it's awaiting feedback.

Link copied to clipboard
fun init(callback: (SentryOptions) -> Unit)

Set up Sentry and enable Sentry integration.

Link copied to clipboard
fun removeEventId(id: SentryId?): Boolean

Remove an event ID that feedback has already been provided for.

Link copied to clipboard
suspend fun sendFeedback(id: SentryId, comments: String? = null, name: String? = null, removeId: Boolean = true)

Convenience wrapper around the Sentry user feedback API.

Link copied to clipboard
suspend fun setCaptureTypes(capture: SentryCapture)