Interface LocationSimulator

com.yandex.mapkit.location

public interface LocationSimulator extends LocationManager

All Superinterfaces:
LocationManager

Simulates the device location.

Methods

Polyline getGeometry()

The polyline describing the location.

PolylinePosition getPolylinePosition()

The position of the polyline.

double getSpeed()

Movement speed.

boolean isActive()

True if simulator is not suspended.

void setGeometry(@NonNull Polyline geometry)
void setSpeed(double speed)
void subscribeForSimulatorEvents(@NonNull LocationSimulatorListener simulatorListener)

Subscribes to simulation events.

void unsubscribeFromSimulatorEvents(@NonNull LocationSimulatorListener simulatorListener)

Unsubscribes from simulation events.

Method Detail

getGeometry

public Polyline getGeometry ()

The polyline describing the location.

getPolylinePosition

public PolylinePosition getPolylinePosition ()

The position of the polyline.

getSpeed

public double getSpeed ()

Movement speed.

isActive

public boolean isActive ()

True if simulator is not suspended.

setGeometry

public void setGeometry (@NonNull Polyline geometry)

setSpeed

public void setSpeed (double speed)

subscribeForSimulatorEvents

public void subscribeForSimulatorEvents (@NonNull LocationSimulatorListener simulatorListener)

Subscribes to simulation events.

unsubscribeFromSimulatorEvents

public void unsubscribeFromSimulatorEvents (@NonNull LocationSimulatorListener simulatorListener)

Unsubscribes from simulation events.