Важно

This feature is available in the Full MapKit SDK version

Package com.yandex.mapkit.search

Class Response

java.lang.Object
    ↳ com.yandex.mapkit.search.Response

class Response implements Serializable

Top level structure for search response.

Summary

Constructors

Signature and Description

Response()
Use constructor with parameters in your code.

Response(@NonNull SearchMetadata metadata,
         @NonNull GeoObjectCollection collection,
         boolean isOffline)

Methods

Type and modifiers

Method and Description

synchronized SearchMetadata

getMetadata()
Extended response information.

synchronized GeoObjectCollection

getCollection()
List of objects (organizations, toponyms) in search response.

synchronized boolean

getIsOffline()
Flag describing if this response was built offline.

void

serialize(com.yandex.runtime.bindings.Archive archive)

static java.lang.String

getNativeName()

Constuctors

Response

Response()

Use constructor with parameters in your code.

This one is for serialization only!


Response

Response(@NonNull SearchMetadata metadata,
         @NonNull GeoObjectCollection collection,
         boolean isOffline)


Methods

getMetadata

@NonNull
SearchMetadata getMetadata()

Extended response information.


getCollection

@NonNull
GeoObjectCollection getCollection()

List of objects (organizations, toponyms) in search response.


getIsOffline

boolean getIsOffline()

Flag describing if this response was built offline.


serialize

@Override
void serialize(com.yandex.runtime.bindings.Archive archive)


getNativeName

java.lang.String getNativeName()


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