Accéder à la console

Firebase.Crashlytics.Crashlytics

FirebaseCrashlytics API

Summary

Properties

IsCrashlyticsCollectionEnabled
static bool
Checks whether the Crashlytics specific data collection flag has been enabled.

Public static functions

Log(string message)
void
Add text logs that will be sent with the next crash report.
LogException(Exception exception)
void
Record a non-fatal exception.
SetCustomKey(string key, string value)
void
Set a key/value pair to be sent with the next crash report.
SetUserId(string identifier)
void
Optionally set an end-user's ID number, token, or other unique value to be associated with subsequent crash reports.

Properties

IsCrashlyticsCollectionEnabled

static bool IsCrashlyticsCollectionEnabled

Checks whether the Crashlytics specific data collection flag has been enabled.

Details
Returns
true if the platform level data collection flag is enabled or unset, false otherwise

Public static functions

Log

void Log(
  string message
)

Add text logs that will be sent with the next crash report.

Details
Parameters
message
The message to log.

LogException

void LogException(
  Exception exception
)

Record a non-fatal exception.

Details
Parameters
exception
The exception to log.

SetCustomKey

void SetCustomKey(
  string key,
  string value
)

Set a key/value pair to be sent with the next crash report.

Details
Parameters
key
Key to associate with a given value. If the key already exists, the new value will overwrite the existing value. When crash reports are recorded, the current value associated with each key will be captured.
value
The value to associate with the given key.

SetUserId

void SetUserId(
  string identifier
)

Optionally set an end-user's ID number, token, or other unique value to be associated with subsequent crash reports.

Details
Parameters
identifier
The user identifier to associate with subsequent crashes.