Class Region

com.yandex.mapkit.offline_cache

java.lang.Object ⇽ Region

public class Region

Attention.

This feature is not available in the free MapKit version.

Constructors

Region(int id, @NonNull String name, @NonNull String country, @NonNull Point center, @NonNull LocalizedValue size, long releaseTime)
Region()

Use constructor with parameters in your code.

Methods

Point getCenter()

Center point.

String getCountry()

Country of the region.

int getId()

Region ID.

String getName()

Name of the region.

long getReleaseTime()

Returns the region creation time.

LocalizedValue getSize()

Region size.

void serialize(Archive archive)

Constructor Detail

Region

public Region (int id, @NonNull String name, @NonNull String country, @NonNull Point center, @NonNull LocalizedValue size, long releaseTime)

Region

public Region ()

Use constructor with parameters in your code.

This one is for bindings only!

Method Detail

getCenter

public Point getCenter ()

Center point.

getCountry

public String getCountry ()

Country of the region.

getId

public int getId ()

Region ID.

getName

public String getName ()

Name of the region.

getReleaseTime

public long getReleaseTime ()

Returns the region creation time.

getSize

public LocalizedValue getSize ()

Region size.

serialize

public void serialize (Archive archive)