RealisticViewWarning constructor
- @Deprecated("Will be removed in v4.29.0. Use the constructor without deprecated fields instead.")
- int id,
- double distanceToRealisticViewInMeters,
- RealisticViewVectorImage? realisticViewVectorImage,
- RealisticViewRasterImage? realisticViewRasterImage,
- DistanceType distanceType,
Creates a new instance.
idUnique identifier for this specific realistic view warning instance. Each warning type (truck restrictions, speed warnings, etc.) maintains its own independent ID namespace. Use this ID to track, update, or dismiss individual warning instances of this type.distanceToRealisticViewInMetersDistance to the junction, for which the realistic view is given, expressed in meters.realisticViewVectorImageThe realistic view object for which the warning is given. Image resources are stored as vector graphics. Within RealisticViewWarning, only one type of image, either raster or vector, will be provided. If this property is notnull, then RealisticViewWarning.realisticViewRasterImage will benull.
Note: The realistic views for most of the countries are stored as vector images.
realisticViewRasterImageThe realistic view object for which the warning is given. Image resources are stored as raster graphics. Within RealisticViewWarning, only one type of image, either raster or vector, will be provided. If this property is notnull, then RealisticViewWarning.realisticViewVectorImage will benull. Note: Certain countries support only raster images as realistic views. Currently, this is the case only for Japan, but in the future, more countries might support this type of realistic views.distanceTypeThe distance type for the warning, e.g. a warning for a new realistic view ahead or a warning for passing a realistic view. Since the realistic view warning is given relative to a single position on the route, DistanceType.reached will never be given for this warning.
Implementation
@Deprecated("Will be removed in v4.29.0. Use the constructor without deprecated fields instead.")
RealisticViewWarning(this.id, this.distanceToRealisticViewInMeters, this.realisticViewVectorImage, this.realisticViewRasterImage, this.distanceType);