Важно

This feature is available in the Full MapKit SDK version

Package com.yandex.mapkit.road_events_layer

Interface StyleProvider

interface StyleProvider

Summary

Methods

Type and modifiers

Method and Description

boolean

provideStyle(@NonNull RoadEventStylingProperties roadEventStylingProperties,
             boolean isNightMode,
             float scaleFactor,
             @NonNull RoadEventStyle style)

Provide style for given road event.

HighlightCircleStyle

provideHighlightCircleStyle(boolean isNightMode,
                            @NonNull HighlightMode highlightMode)

Methods

provideStyle

@UiThread
boolean provideStyle(@NonNull RoadEventStylingProperties roadEventStylingProperties,
                     boolean isNightMode,
                     float scaleFactor,
                     @NonNull RoadEventStyle style)

Provide style for given road event.

Must produce same style for same input arguments.

Parameters

scaleFactor

Scale factor of a map window displaying this road event. Road event icon image scale factor must match this value.

Returns

false if road event must not be displayed at all.


provideHighlightCircleStyle

@UiThread @Nullable
HighlightCircleStyle provideHighlightCircleStyle(boolean isNightMode,
                                                 @NonNull HighlightMode highlightMode)


Предыдущая
Следующая