Attachment

expect class Attachment
actual class Attachment

An attachment to be sent along with the event.

Constructors

Link copied to clipboard
expect constructor(bytes: ByteArray, filename: String)
actual constructor(bytes: ByteArray, filename: String)
expect constructor(bytes: ByteArray, filename: String, contentType: String?)
actual constructor(bytes: ByteArray, filename: String, contentType: String?)
expect constructor(pathname: String)
actual constructor(pathname: String)
expect constructor(pathname: String, filename: String)
actual constructor(pathname: String, filename: String)
expect constructor(pathname: String, filename: String, contentType: String?)
actual constructor(pathname: String, filename: String, contentType: String?)

Types

Link copied to clipboard
expect object Companion
actual object Companion

Properties

Link copied to clipboard
expect val bytes: ByteArray?
actual val bytes: ByteArray?

The bytes of the attachment.

Link copied to clipboard
expect val contentType: String?
actual val contentType: String?

The content type of the attachment. The server infers "application/octet-stream" if not set.

Link copied to clipboard
expect val filename: String
actual val filename: String

The name of the attachment to display in Sentry

Link copied to clipboard
expect val pathname: String?
actual val pathname: String?

The pathname string of the attachment.