All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.io.sentry.kotlin.multiplatform.SentryBridge.kt Maven / Gradle / Ivy

package io.sentry.kotlin.multiplatform

import io.sentry.kotlin.multiplatform.protocol.Breadcrumb
import io.sentry.kotlin.multiplatform.protocol.SentryId
import io.sentry.kotlin.multiplatform.protocol.User
import io.sentry.kotlin.multiplatform.protocol.UserFeedback

internal expect object SentryBridge {

    fun init(context: Context, configuration: OptionsConfiguration)

    fun init(configuration: OptionsConfiguration)

    fun captureMessage(message: String): SentryId

    fun captureMessage(message: String, scopeCallback: ScopeCallback): SentryId

    fun captureException(throwable: Throwable): SentryId

    fun captureException(throwable: Throwable, scopeCallback: ScopeCallback): SentryId

    fun configureScope(scopeCallback: ScopeCallback)

    fun captureUserFeedback(userFeedback: UserFeedback)

    fun addBreadcrumb(breadcrumb: Breadcrumb)

    fun setUser(user: User?)

    fun close()
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy