Attachment

expect class Attachment

An attachment to be sent along with the event.

Constructors

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

Types

Link copied to clipboard
expect object Companion

Properties

Link copied to clipboard
expect val bytes: ByteArray?

The bytes of the attachment.

Link copied to clipboard
expect 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

The name of the attachment to display in Sentry

Link copied to clipboard
expect val pathname: String?

The pathname string of the attachment.