Firebase. Crashlytics. Crashlytics
Summary
Properties | |
|---|---|
IsCrashlyticsCollectionEnabled = false | static boolChecks whether theCrashlytics specific data collection flag has been enabled. |
ReportUncaughtExceptionsAsFatal | static boolWhetherCrashlytics is set to report uncaught exceptions as fatal. |
Public static functions | |
|---|---|
Log(string message) | voidAdd text logs that will be sent with the next crash report. |
LogException(Exception exception) | voidRecord a non-fatal exception. |
SetCustomKey(string key, string value) | voidSet a key/value pair to be sent with the next crash report. |
SetUserId(string identifier) | voidOptionally set an end-user's ID number, token, or other unique value to be associated with subsequent crash reports. |
Properties
IsCrashlyticsCollectionEnabled
staticboolIsCrashlyticsCollectionEnabled=false
Checks whether theCrashlytics specific data collection flag has been enabled.
| Details | |
|---|---|
| Returns | true if the platform level data collection flag is enabled or unset, false otherwise |
ReportUncaughtExceptionsAsFatal
staticboolReportUncaughtExceptionsAsFatal
WhetherCrashlytics is set to report uncaught exceptions as fatal.
Fatal exceptions count towards Crash Free Users and Velocity Alerts. It is recommended to enable this for new apps.
| Details | |
|---|---|
| Returns | true ifCrashlytics is set to report uncaught exceptions as fatal, false otherwise. |
Public static functions
Log
voidLog(stringmessage)
Add text logs that will be sent with the next crash report.
| Details | |||
|---|---|---|---|
| Parameters |
|
LogException
voidLogException(Exceptionexception)
Record a non-fatal exception.
| Details | |||
|---|---|---|---|
| Parameters |
|
SetCustomKey
voidSetCustomKey(stringkey,stringvalue)
Set a key/value pair to be sent with the next crash report.
| Details | |||||
|---|---|---|---|---|---|
| Parameters |
|
SetUserId
voidSetUserId(stringidentifier)
Optionally set an end-user's ID number, token, or other unique value to be associated with subsequent crash reports.
| Details | |||
|---|---|---|---|
| Parameters |
|
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-03-09 UTC.