FirebaseCrashlyticsPlatform class abstract
The Firebase Crashlytics platform interface.
This class should be extended by any classes implementing the plugin on other Flutter supported platforms.
- Inheritance
-
- Object
- PlatformInterface
- FirebaseCrashlyticsPlatform
- Implementers
Constructors
- FirebaseCrashlyticsPlatform({required FirebaseApp appInstance})
-
The
FirebaseApp
this instance was initialized with. - FirebaseCrashlyticsPlatform.instanceFor({required FirebaseApp app, required Map pluginConstants})
-
Create an instance using
app
using the existing implementationfactory
Properties
- app → FirebaseApp
-
Returns the
FirebaseApp
for the current instance.no setter - appInstance → FirebaseApp
-
The
FirebaseApp
this instance was initialized with.final - 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 setter
- 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.
-
crash(
) → void - Causes the app to crash (natively).
-
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.
-
didCrashOnPreviousExecution(
) → Future< bool> - Checks whether the app crashed on its previous run.
-
log(
String message) → Future< void> - Logs a message that's included in the next fatal or non-fatal report.
-
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< String> loadingUnits = const [], List<Map< ? stackTraceElements}) → Future<String, String> >void> - Submits a Crashlytics report of a caught error.
-
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.
-
setCrashlyticsCollectionEnabled(
bool enabled) → Future< void> - Enables/disables automatic data collection by Crashlytics.
-
setCustomKey(
String key, String value) → Future< void> - Sets a custom key and value that are associated with subsequent fatal and non-fatal reports.
-
setInitialValues(
{required bool isCrashlyticsCollectionEnabled}) → FirebaseCrashlyticsPlatform - Sets any initial values on the instance.
-
setUserIdentifier(
String identifier) → Future< void> - Records a user ID (identifier) that's associated with subsequent fatal and non-fatal reports.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ FirebaseCrashlyticsPlatform
-
The current default FirebaseCrashlyticsPlatform instance.
getter/setter pair