MethodChannelFirebaseCrashlytics class

The entry point for accessing a method channel based Crashlytics instance.

You can get an instance by calling MethodChannelFirebaseCrashlytics.instance.

Inheritance

Constructors

MethodChannelFirebaseCrashlytics({required FirebaseApp app})
Create an instance of MethodChannelFirebaseCrashlytics.

Properties

app → FirebaseApp
Returns the FirebaseApp for the current instance.
no setterinherited
appInstance → FirebaseApp
The FirebaseApp this instance was initialized with.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
isCrashlyticsCollectionEnabled bool
Whether the current Crashlytics instance is collecting reports. If false, then no crash reporting data is sent to Firebase.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkForUnsentReports() Future<bool>
Checks a device for any fatal or non-fatal crash reports that haven't yet been sent to Crashlytics.
override
crash() Future<void>
Causes the app to crash (natively).
override
deleteUnsentReports() Future<void>
If automatic data collection is disabled, this method queues up all the reports on a device for deletion. Otherwise, this method is a no-op.
override
didCrashOnPreviousExecution() Future<bool>
Checks whether the app crashed on its previous run.
override
log(String message) Future<void>
Logs a message that's included in the next fatal or non-fatal report.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recordError({required String exception, required String information, required String? reason, bool fatal = false, String? buildId, List<Map<String, String>>? stackTraceElements}) Future<void>
Submits a Crashlytics report of a caught error.
override
sendUnsentReports() Future<void>
If automatic data collection is disabled, this method queues up all the reports on a device to send to Crashlytics. Otherwise, this method is a no-op.
override
setCrashlyticsCollectionEnabled(bool enabled) Future<void>
Enables/disables automatic data collection by Crashlytics.
override
setCustomKey(String key, String value) Future<void>
Sets a custom key and value that are associated with subsequent fatal and non-fatal reports.
override
setInitialValues({required bool isCrashlyticsCollectionEnabled}) MethodChannelFirebaseCrashlytics
Sets any initial values on the instance.
override
setUserIdentifier(String identifier) Future<void>
Records a user ID (identifier) that's associated with subsequent fatal and non-fatal reports.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

channel MethodChannel
The MethodChannel used to communicate with the native plugin
getter/setter pair