Class ScreenRect

com.yandex.mapkit

java.lang.Object ⇽ ScreenRect

public class ScreenRect

A rectangle on the device screen.

Constructors

ScreenRect(@NonNull ScreenPoint topLeft, @NonNull ScreenPoint bottomRight)
ScreenRect()

Use constructor with parameters in your code.

Methods

ScreenPoint getBottomRight()

The position of the bottom right corner of the rectangle.

ScreenPoint getTopLeft()

The position of the top left corner of the rectangle.

void serialize(Archive archive)

Constructor Detail

ScreenRect

public ScreenRect (@NonNull ScreenPoint topLeft, @NonNull ScreenPoint bottomRight)

ScreenRect

public ScreenRect ()

Use constructor with parameters in your code.

This one is for bindings only!

Method Detail

getBottomRight

public ScreenPoint getBottomRight ()

The position of the bottom right corner of the rectangle.

getTopLeft

public ScreenPoint getTopLeft ()

The position of the top left corner of the rectangle.

serialize

public void serialize (Archive archive)