setCrashlyticsCollectionEnabled method

Future<void> setCrashlyticsCollectionEnabled(
  1. bool enabled
)

Enables/disables automatic data collection by Crashlytics.

If this is set, it overrides the data collection settings provided by the Android Manifest, iOS Plist settings, as well as any Firebase-wide automatic data collection settings.

When you set a value for this method, it persists across runs of the app.

If automatic data collection is disabled for Crashlytics, crash reports are stored on the device. To check for reports, use the checkForUnsentReports method. Use sendUnsentReports to upload existing reports even when automatic data collection is disabled. Use deleteUnsentReports to delete any reports stored on the device without sending them to Crashlytics.

Implementation

Future<void> setCrashlyticsCollectionEnabled(bool enabled) {
  return _delegate.setCrashlyticsCollectionEnabled(enabled);
}