WarningsRegistry
public class WarningsRegistry
extension WarningsRegistry: NativeBase
extension WarningsRegistry: Hashable
A class that store warning metadata for different warning types.
Aggregates individual collection for each warning category (safety cameras, truck restrictions, etc.).
Provided by WarnerEngine so callers can lookup detailed information about specific warnings.
Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.
-
Returns a safety-camera warning corresponding to the given identifier.
Declaration
Swift
public func getSafetyCameraWarning(warning: Warning) -> SafetyCameraWarning?Parameters
warningThe identifier of the warning, as provided by
WarningListener.onWarning. Thewarninguniquely identifies a single safety-camera warning within this registry and is used to retrieve its full metadata.Return Value
The
SafetyCameraWarningobject associated with the providedWarningsRegistry.getSafetyCameraWarning(...).warning, ornilif no warning exists for the givenWarningsRegistry.getSafetyCameraWarning(...).warning. This object contains the full details and attributes of the corresponding warning. -
Returns a truck restrictions warning corresponding to the given identifier.
Declaration
Swift
public func getTruckRestrictionWarning(warning: Warning) -> TruckRestrictionWarning?Parameters
warningThe identifier of the warning, as provided by
WarningListener.onWarning. Thewarninguniquely identifies a single truck restrictions warning within this registry and is used to retrieve its full metadata.Return Value
The
TruckRestrictionWarningobject associated with the providedWarningsRegistry.getTruckRestrictionWarning(...).warning, ornilif no warning exists for the givenWarningsRegistry.getTruckRestrictionWarning(...).warning. This object contains the full details and attributes of the corresponding warning. -
Returns a road-sign warning corresponding to the given identifier.
Declaration
Swift
public func getRoadSignWarning(warning: Warning) -> RoadSignWarning?Parameters
warningThe identifier of the warning, as provided by
WarningListener.onWarning. Thewarninguniquely identifies a single road sign warning within this registry and is used to retrieve its full metadata.Return Value
The
sdk.navigation.RoadSignWarningobject associated with the providedWarningsRegistry.getRoadSignWarning(...).warning, ornilif no warning exists for the givenWarningsRegistry.getRoadSignWarning(...).warning. This object contains the full details and attributes of the corresponding warning. -
Returns a realistic-view warning corresponding to the given identifier.
Declaration
Swift
public func getRealisticViewWarning(warning: Warning) -> RealisticViewWarning?Parameters
warningThe identifier of the warning, as provided by
WarningListener.onWarning. Thewarninguniquely identifies a single realistic-view warning within this registry and is used to retrieve its full metadata.Return Value
The
RealisticViewWarningobject associated with the providedWarningsRegistry.getRealisticViewWarning(...).warning, ornilif no warning exists for the givenWarningsRegistry.getRealisticViewWarning(...).warning. This object contains the full details and attributes of the corresponding warning. -
Returns environmental zone warning corresponding to the given identifier.
Declaration
Swift
public func getEnvironmentalZoneWarning(warning: Warning) -> EnvironmentalZoneWarning?Parameters
warningThe identifier of the warning, as provided by
WarningListener.onWarning. Thewarninguniquely identifies a single environmental zone warning within this registry and is used to retrieve its full metadata.Return Value
The
EnvironmentalZoneWarningobject associated with the providedWarningsRegistry.getEnvironmentalZoneWarning(...).warning, ornilif no warning exists for the givenWarningsRegistry.getEnvironmentalZoneWarning(...).warning. This object contains the full details and attributes of the corresponding warning. -
Returns a school zone warning corresponding to the given identifier.
Declaration
Swift
public func getSchoolZoneWarning(warning: Warning) -> SchoolZoneWarning?Parameters
warningThe identifier of the warning, as provided by
WarningListener.onWarning. Thewarninguniquely identifies a single school zone warning within this registry and is used to retrieve its full metadata.Return Value
The
SchoolZoneWarningobject associated with the providedWarningsRegistry.getSchoolZoneWarning(...).warning, ornilif no warning exists for the givenWarningsRegistry.getSchoolZoneWarning(...).warning. This object contains the full details and attributes of the corresponding warning. -
Returns a toll stop warning corresponding to the given identifier.
Parameters
warningThe identifier of the warning, as provided by
WarningListener.onWarning. Thewarninguniquely identifies a single toll stop warning within this registry and is used to retrieve its full metadata.Return Value
The
TollStopobject associated with the providedWarningsRegistry.getTollStopWarning(...).warning, ornilif no warning exists for the givenWarningsRegistry.getTollStopWarning(...).warning. This object contains the full details and attributes of the corresponding warning. -
Returns a danger zone warning corresponding to the given identifier.
Declaration
Swift
public func getDangerZoneWarning(warning: Warning) -> DangerZoneWarning?Parameters
warningThe identifier of the warning, as provided by
WarningListener.onWarning. Thewarninguniquely identifies a single danger zone warning within this registry and is used to retrieve its full metadata.Return Value
The
DangerZoneWarningobject associated with the providedWarningsRegistry.getDangerZoneWarning(...).warning, ornilif no warning exists for the givenWarningsRegistry.getDangerZoneWarning(...).warning. This object contains the full details and attributes of the corresponding warning. -
Returns a border crossing warning corresponding to the given identifier.
Declaration
Swift
public func getBorderCrossingWarning(warning: Warning) -> BorderCrossingWarning?Parameters
warningThe identifier of the warning, as provided by
WarningListener.onWarning. Thewarninguniquely identifies a single border crossing warning within this registry and is used to retrieve its full metadata.Return Value
The
BorderCrossingWarningobject associated with the providedWarningsRegistry.getBorderCrossingWarning(...).warning, ornilif no warning exists for the givenWarningsRegistry.getBorderCrossingWarning(...).warning. This object contains the full details and attributes of the corresponding warning. -
Returns a railway crossing warning corresponding to the given identifier.
Declaration
Swift
public func getRailwayCrossingWarning(warning: Warning) -> RailwayCrossingWarning?Parameters
warningThe identifier of the warning, as provided by
WarningListener.onWarning. Thewarninguniquely identifies a single railway crossing warning within this registry and is used to retrieve its full metadata.Return Value
The
RailwayCrossingWarningobject associated with the providedWarningsRegistry.getRailwayCrossingWarning(...).warning, ornilif no warning exists for the givenWarningsRegistry.getRailwayCrossingWarning(...).warning. This object contains the full details and attributes of the corresponding warning. -
Returns a low speed zone warning corresponding to the given identifier.
Declaration
Swift
public func getLowSpeedZoneWarning(warning: Warning) -> LowSpeedZoneWarning?Parameters
warningThe identifier of the warning, as provided by
WarningListener.onWarning. Thewarninguniquely identifies a single low speed zone warning within this registry and is used to retrieve its full metadata.Return Value
The
LowSpeedZoneWarningobject associated with the providedWarningsRegistry.getLowSpeedZoneWarning(...).warning, ornilif no warning exists for the givenWarningsRegistry.getLowSpeedZoneWarning(...).warning. This object contains the full details and attributes of the corresponding warning. -
Returns a traffic merge warning corresponding to the given identifier.
Declaration
Swift
public func getTrafficMergeWarning(warning: Warning) -> TrafficMergeWarning?Parameters
warningThe identifier of the warning, as provided by
WarningListener.onWarning. Thewarninguniquely identifies a single traffic merge warning within this registry and is used to retrieve its full metadata.Return Value
The
sdk.navigation.TrafficMergeWarningobject associated with the providedWarningsRegistry.getTrafficMergeWarning(...).warning, ornilif no warning exists for the givenWarningsRegistry.getTrafficMergeWarning(...).warning. This object contains the full details and attributes of the corresponding warning. -
Returns a lane decrease warning corresponding to the given identifier.
Declaration
Swift
public func getLaneDecreaseWarning(warning: Warning) -> LaneDecreaseWarning?Parameters
warningThe identifier of the warning, as provided by
WarningListener.onWarning. Thewarninguniquely identifies a single lane decrease warning within this registry and is used to retrieve its full metadata.Return Value
The
LaneDecreaseWarningobject associated with the providedWarningsRegistry.getLaneDecreaseWarning(...).warning, ornilif no warning exists for the givenWarningsRegistry.getLaneDecreaseWarning(...).warning. This object contains the full details and attributes of the corresponding warning.Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.
-
Returns additional data associated with the given custom warning.
The provided
WarningsRegistry.getCustomWarning(...).warningidentifies a specific custom warning instance by its base warning information and custom warning type. This information is used to resolve the corresponding entry in the warning registry and retrieve any additional, type-specific data associated with the warning.Declaration
Swift
public func getCustomWarning(warning: Warning) -> CustomWarning?Parameters
warningThe
Warninginstance identifying the custom warning for which additional data should be retrieved.Return Value
The
CustomWarningassociated with the givenWarningsRegistry.getCustomWarning(...).warning, ornilif no additional data exists for this warning. The returned object contains the payload with type-specific details and attributes of the corresponding warning.Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.