• About MapKit
    • Getting started
  • Map styles
  • MapKit SDK versions
  • Frequently asked questions
  • Contact us

Package com.yandex.mapkit.layers

Interface DataSource

interface DataSource

Summary

Methods

Type and modifiers

Method and Description

java.lang.String

getId()
Stores id of data source.

void

invalidate(@NonNull java.lang.String version)
Invalidates data source and reloads all tiles.

boolean

isValid()
Tells if this DataSource is valid or not.

Methods

getId

@NonNull
java.lang.String getId()

Stores id of data source.


invalidate

void invalidate(@NonNull java.lang.String version)

Invalidates data source and reloads all tiles.

Must not be called if DataSource does not support versioning: LayerOptions.versionSupport = false;

This method may be called on any thread. Its implementation must be thread-safe.


isValid

boolean isValid()

Tells if this DataSource is valid or not.

Any other method (except for this one) called on an invalid DataSource will throw java.lang.RuntimeException. An instance becomes invalid only on UI thread, and only when its implementation depends on objects already destroyed by now. Please refer to general docs about the interface for details on its invalidation.