Interface Places

com.yandex.mapkit.places

public interface Places

Methods

PanoramaLayer createPanoramaLayer(@NonNull MapWindow mapWindow)

Creates a layer representing where panoramas are available.

Player createPanoramaPlayer(@NonNull PlatformGLView platformView)

Creates an internal "window" object needed to show the panorama viewer.

PanoramaService createPanoramaService()

Creates a service that allows to find a panorama closest to the chosen point.

boolean isValid()

Tells if this Places is valid or no.

Method Detail

createPanoramaLayer

public PanoramaLayer createPanoramaLayer (@NonNull MapWindow mapWindow)

Creates a layer representing where panoramas are available.

createPanoramaPlayer

public Player createPanoramaPlayer (@NonNull PlatformGLView platformView)

Creates an internal "window" object needed to show the panorama viewer.

Do not call this method - it is for internal use only. To open the panorama viewer, please use the corresponding panorama "view" object.

createPanoramaService

public PanoramaService createPanoramaService ()

Creates a service that allows to find a panorama closest to the chosen point.

isValid

public boolean isValid ()

Tells if this Places is valid or no.

Any other method (except for this one) called on an invalid Places 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.