KeyValueBuilder

public final class KeyValueBuilder


Helper class to enable fluent syntax in setCustomKeys

Summary

Public constructors

Public methods

final void
key(@NonNull String key, boolean value)

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

final void
key(@NonNull String key, double value)

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

final void
key(@NonNull String key, float value)

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

final void
key(@NonNull String key, int value)

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

final void
key(@NonNull String key, long value)

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

final void
key(@NonNull String key, @NonNull String value)

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

Public constructors

KeyValueBuilder

public KeyValueBuilder(@NonNull FirebaseCrashlytics crashlytics)

Public methods

key

public final void key(@NonNull String key, boolean value)

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

public final void key(@NonNull String key, double value)

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

public final void key(@NonNull String key, float value)

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

public final void key(@NonNull String key, int value)

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

public final void key(@NonNull String key, long value)

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

public final void key(@NonNull String key, @NonNull String value)

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.