Важно

This feature is available in the Full MapKit SDK version

Package com.yandex.mapkit.search

Class Photo

java.lang.Object
    ↳ com.yandex.mapkit.search.BusinessPhotoObjectMetadata.Photo

static class Photo implements Serializable

Information about single photos.

Nested Class Summary

Modifier and Type

Interface

Description

static

PhotoLink

Photo link details.

Summary

Constructors

Signature and Description

Photo()
Use constructor with parameters in your code.

Photo(@NonNull java.lang.String id,
      @NonNull java.util.List<PhotoLink> links)

Methods

Type and modifiers

Method and Description

synchronized java.lang.String

getId()
To get a valid download link use the value of id + /[size], where [size] is one of: 1.

synchronized java.util.List<PhotoLink>

getLinks()
Photo links.

void

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

static java.lang.String

getNativeName()

Constuctors

Photo

Photo()

Use constructor with parameters in your code.

This one is for serialization only!


Photo(@NonNull java.lang.String id,
      @NonNull java.util.List<PhotoLink> links)


Methods

getId

@NonNull
java.lang.String getId()

To get a valid download link use the value of id + /[size], where [size] is one of: 1.

XXXS 2. XXS 3. XS 4. S 5. M 6. L 7. XL 8. XXL 9. XXXL 10. orig


@NonNull
java.util.List<PhotoLink> getLinks()

Photo links.


serialize

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


getNativeName

java.lang.String getNativeName()