getSafetyCameraWarning abstract method

SafetyCameraWarning? getSafetyCameraWarning(
  1. Warning warning
)

Returns a safety-camera warning corresponding to the given identifier.

  • warning The identifier of the warning, as provided by WarningListener.onWarning. The warning uniquely identifies a single safety-camera warning within this registry and is used to retrieve its full metadata.

Returns SafetyCameraWarning?. The SafetyCameraWarning object associated with the provided WarningsRegistry.getSafetyCameraWarning.warning, or null if no warning exists for the given WarningsRegistry.getSafetyCameraWarning.warning. This object contains the full details and attributes of the corresponding warning.

Implementation

SafetyCameraWarning? getSafetyCameraWarning(Warning warning);