Protocol YMKAssetsProvider

Interface for providing images, image sizes and icon styles to the search layer.

Call with static_cast<int>(PlacemarkIconType) in all methods.

Instance Methods

- iconStyleWithSearchResult:placemarkIconType:

Returns the icon style for certain placemark type with given search result.

- imageWithSearchResult:placemarkIconType:

Returns an image for certain placemark type with given search result.

- sizeWithSearchResult:placemarkIconType:

Returns the size of the icon of certain placemark type with given search result.

Method Detail

-iconStyleWithSearchResult:placemarkIconType:

- (nonnull YMKIconStyle *)iconStyleWithSearchResult:(nonnull YMKSearchResultItem *)searchResult
                                  placemarkIconType:(NSInteger)placemarkIconType 

Returns the icon style for certain placemark type with given search result.

If obtainAdIcons mode is enabled, IconStyle.anchor will be replaced for advertisement pins

-imageWithSearchResult:placemarkIconType:

- (nonnull UIImage *)imageWithSearchResult:(nonnull YMKSearchResultItem *)searchResult
                         placemarkIconType:(NSInteger)placemarkIconType 

Returns an image for certain placemark type with given search result.

-sizeWithSearchResult:placemarkIconType:

- (nonnull YMKSize *)sizeWithSearchResult:(nonnull YMKSearchResultItem *)searchResult
                        placemarkIconType:(NSInteger)placemarkIconType 

Returns the size of the icon of certain placemark type with given search result.