setCustomKey

actual fun setCustomKey(key: String, value: String)(source)
actual fun setCustomKey(key: String, value: Boolean)(source)
actual fun setCustomKey(key: String, value: Double)(source)
actual fun setCustomKey(key: String, value: Float)(source)
actual fun setCustomKey(key: String, value: Int)(source)
actual fun setCustomKey(key: String, value: Long)(source)
expect fun setCustomKey(key: String, value: String)(source)
expect fun setCustomKey(key: String, value: Boolean)(source)
expect fun setCustomKey(key: String, value: Double)(source)
expect fun setCustomKey(key: String, value: Float)(source)
expect fun setCustomKey(key: String, value: Int)(source)
expect fun setCustomKey(key: String, value: Long)(source)

Sets a custom key and value that are associated with subsequent fatal, non-fatal, and ANR reports.

Multiple calls to this method with the same key update the value for that key.

The value of any key at the time of a fatal, non-fatal, or ANR event is associated with that event.

Keys and associated values are visible in the session view on the Firebase Crashlytics console.

Accepts a maximum of 64 key/value pairs. New keys beyond that limit are ignored. Keys or values that exceed 1024 characters are truncated.

Parameters

key

A unique key

value

A value to be associated with the given key

actual fun setCustomKey(key: String, value: String)(source)
actual fun setCustomKey(key: String, value: Boolean)(source)
actual fun setCustomKey(key: String, value: Double)(source)
actual fun setCustomKey(key: String, value: Float)(source)
actual fun setCustomKey(key: String, value: Int)(source)
actual fun setCustomKey(key: String, value: Long)(source)