isSocialReportsEnabledWithCategory static method

bool isSocialReportsEnabledWithCategory(
  1. int categoryId
)

Checks whether the social reports overlay is enabled for a specific category.

Requires the safety camera overlay to be available in the current map style. Also needs a GemMap to be active for proper functioning.

Parameters

  • categoryId: The overlay category identifier.

Returns

  • bool: true if the category is enabled, otherwise false.

Implementation

static bool isSocialReportsEnabledWithCategory(int categoryId) {
  return OverlayService.isOverlayEnabled(
    CommonOverlayId.socialReports.id,
    categUid: categoryId,
  );
}