Join us in person and online for Firebase Summit on October 18, 2022. Learn how Firebase can help you accelerate app development, release your app with confidence, and scale with ease. Register now
Stay organized with collections Save and categorize content based on your preferences.

KeyValueBuilder

class KeyValueBuilder
kotlin.Any
   ↳ com.google.firebase.crashlytics.ktx.KeyValueBuilder

Helper class to enable fluent syntax in setCustomKeys

Summary

Public constructors
<init>(crashlytics: FirebaseCrashlytics)

Helper class to enable fluent syntax in setCustomKeys

Public methods
Unit
key(key: String, value: Boolean)

Sets a custom key and value that are associated with reports.

Unit
key(key: String, value: Double)

Sets a custom key and value that are associated with reports.

Unit
key(key: String, value: Float)

Sets a custom key and value that are associated with reports.

Unit
key(key: String, value: Int)

Sets a custom key and value that are associated with reports.

Unit
key(key: String, value: Long)

Sets a custom key and value that are associated with reports.

Unit
key(key: String, value: String)

Sets a custom key and value that are associated with reports.

Public constructors

<init>

KeyValueBuilder(crashlytics: FirebaseCrashlytics)

Helper class to enable fluent syntax in setCustomKeys

Public methods

key

fun key(
    key: String,
    value: Boolean
): Unit

Sets a custom key and value that are associated with reports.

key

fun key(
    key: String,
    value: Double
): Unit

Sets a custom key and value that are associated with reports.

key

fun key(
    key: String,
    value: Float
): Unit

Sets a custom key and value that are associated with reports.

key

fun key(
    key: String,
    value: Int
): Unit

Sets a custom key and value that are associated with reports.

key

fun key(
    key: String,
    value: Long
): Unit

Sets a custom key and value that are associated with reports.

key

fun key(
    key: String,
    value: String
): Unit

Sets a custom key and value that are associated with reports.