logSelectContent method

Future<void> logSelectContent({
  1. required String contentType,
  2. required String itemId,
  3. Map<String, Object>? parameters,
})

Logs the standard select_content event.

This general purpose event signifies that a user has selected some content of a certain type in an app. The content can be any object in your app. This event can help you identify popular content and categories of content in your app.

See: https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics.Event.html#SELECT_CONTENT

Implementation

Future<void> logSelectContent({
  required String contentType,
  required String itemId,
  Map<String, Object>? parameters,
}) {
  _assertParameterTypesAreCorrect(parameters);

  return _delegate.logEvent(
    name: 'select_content',
    parameters: filterOutNulls(<String, Object?>{
      _CONTENT_TYPE: contentType,
      _ITEM_ID: itemId,
      if (parameters != null) ...parameters,
    }),
  );
}