setAutomaticDataCollectionEnabled method

  1. @override
Future<void> setAutomaticDataCollectionEnabled(
  1. bool enabled
)
override

Sets whether automatic data collection is enabled or disabled for this app.

It is possible to check whether data collection is currently enabled via the FirebaseAppPlatform.isAutomaticDataCollectionEnabled property.

Implementation

@override
Future<void> setAutomaticDataCollectionEnabled(bool enabled) {
  _isAutomaticDataCollectionEnabled = enabled;
  return Future.value();
}