Package com.yandex.mapkit

Class ScreenRect

java.lang.Object
    ↳ com.yandex.mapkit.ScreenRect

class ScreenRect implements Serializable

A rectangle on the device screen.

Summary

Constructors

Signature and Description

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

ScreenRect()
Use constructor with parameters in your code.

Methods

Type and modifiers

Method and Description

ScreenPoint

getTopLeft()
The position of the top left corner of the rectangle.

ScreenPoint

getBottomRight()
The position of the bottom right corner of the rectangle.

void

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

Constuctors

ScreenRect

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


ScreenRect

ScreenRect()

Use constructor with parameters in your code.

This one is for bindings only!


Methods

getTopLeft

@NonNull
ScreenPoint getTopLeft()

The position of the top left corner of the rectangle.


getBottomRight

@NonNull
ScreenPoint getBottomRight()

The position of the bottom right corner of the rectangle.


serialize

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