KeyValueBuilder

class KeyValueBuilder


Helper class to enable fluent syntax in setCustomKeys

Summary

Public constructors

Public functions

Unit
key(key: String, value: Boolean)

This function is deprecated. Use `com.google.firebase.crashlytics.KeyValueBuilder.key(key, value)` from the main module.

Unit
key(key: String, value: Double)

This function is deprecated. Use `com.google.firebase.crashlytics.KeyValueBuilder.key(key, value)` from the main module.

Unit
key(key: String, value: Float)

This function is deprecated. Use `com.google.firebase.crashlytics.KeyValueBuilder.key(key, value)` from the main module.

Unit
key(key: String, value: Int)

This function is deprecated. Use `com.google.firebase.crashlytics.KeyValueBuilder.key(key, value)` from the main module.

Unit
key(key: String, value: Long)

This function is deprecated. Use `com.google.firebase.crashlytics.KeyValueBuilder.key(key, value)` from the main module.

Unit
key(key: String, value: String)

This function is deprecated. Use `com.google.firebase.crashlytics.KeyValueBuilder.key(key, value)` from the main module.

Public constructors

KeyValueBuilder

KeyValueBuilder(crashlytics: FirebaseCrashlytics)

Public functions

key

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

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

Important In July 2025, we stopped releasing KTX modules and removed the KTX libraries from the Firebase Android BoM (v34.0.0). If you use KTX APIs from the KTX modules, we recommend that you migrate your app to use KTX APIs from the main modules instead. For details, see the FAQ about this initiative.

key

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

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

Important In July 2025, we stopped releasing KTX modules and removed the KTX libraries from the Firebase Android BoM (v34.0.0). If you use KTX APIs from the KTX modules, we recommend that you migrate your app to use KTX APIs from the main modules instead. For details, see the FAQ about this initiative.

key

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

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

Important In July 2025, we stopped releasing KTX modules and removed the KTX libraries from the Firebase Android BoM (v34.0.0). If you use KTX APIs from the KTX modules, we recommend that you migrate your app to use KTX APIs from the main modules instead. For details, see the FAQ about this initiative.

key

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

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

Important In July 2025, we stopped releasing KTX modules and removed the KTX libraries from the Firebase Android BoM (v34.0.0). If you use KTX APIs from the KTX modules, we recommend that you migrate your app to use KTX APIs from the main modules instead. For details, see the FAQ about this initiative.

key

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

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

Important In July 2025, we stopped releasing KTX modules and removed the KTX libraries from the Firebase Android BoM (v34.0.0). If you use KTX APIs from the KTX modules, we recommend that you migrate your app to use KTX APIs from the main modules instead. For details, see the FAQ about this initiative.

key

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

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

Important In July 2025, we stopped releasing KTX modules and removed the KTX libraries from the Firebase Android BoM (v34.0.0). If you use KTX APIs from the KTX modules, we recommend that you migrate your app to use KTX APIs from the main modules instead. For details, see the FAQ about this initiative.