-
- All Implemented Interfaces:
-
com.bugsnag.android.Deliverable,com.bugsnag.android.JsonStream.Streamable
public final class EventPayload implements JsonStream.Streamable, Deliverable
An error report payload.
This payload contains an error report and identifies the source application using your API key.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classEventPayload.Companion
-
Method Summary
Modifier and Type Method Description final EventgetEvent()final UnitsetEvent(Event event)final StringgetApiKey()final UnitsetApiKey(String apiKey)StringgetIntegrityToken()final EventPayloadtrimToSize(Integer maxSizeBytes)If required trim this EventPayloadso that its encoded data will usually be less-than or equal to maxSizeBytes.final EventPayloadtrimToSize()If required trim this EventPayloadso that its encoded data will usually be less-than or equal to maxSizeBytes.UnittoStream(JsonStream writer)ByteArraytoByteArray()Transform this EventPayloadto a byte array suitable for delivery to a BugSnag event endpoint (typically configured using EndpointConfiguration.notify).-
-
Method Detail
-
getIntegrityToken
String getIntegrityToken()
-
trimToSize
@JvmOverloads() final EventPayload trimToSize(Integer maxSizeBytes)
If required trim this
EventPayloadso that its encoded data will usually be less-than or equal to maxSizeBytes. This function may make no changes to the payload, and may also not achieve the requested maxSizeBytes. The default use of the function is configured to DEFAULT_MAX_PAYLOAD_SIZE.
-
trimToSize
@JvmOverloads() final EventPayload trimToSize()
If required trim this
EventPayloadso that its encoded data will usually be less-than or equal to maxSizeBytes. This function may make no changes to the payload, and may also not achieve the requested maxSizeBytes. The default use of the function is configured to DEFAULT_MAX_PAYLOAD_SIZE.
-
toStream
Unit toStream(JsonStream writer)
-
toByteArray
ByteArray toByteArray()
Transform this
EventPayloadto a byte array suitable for delivery to a BugSnag event endpoint (typically configured using EndpointConfiguration.notify).
-
-
-
-