HERE Android SDK Developer's Guide

Size

The class Size is a member of com.here.android.mpa.common .

Class Summary

public final class Size

extends java.lang.Object

Represents size in pixels

[For complete information, see the section Class Details]

Constructor Summary

Table 1. Constructors in Size
Constructors

Size ()

Public constructor

Size (int width, int height)

Public constructor

Field Summary

Table 2. Fields in Size
Fields

public int height

Height of the screen in pixels

public int width

Width if the screen in pixels

Method Summary

Table 3. Methods in Size
Methods

public boolean equals (Object other)

For documentation, see java.lang.Object

public int hashCode ()

For documentation, see java.lang.Object

public boolean isNull ()

Has no dimensions

Class Details

Represents size in pixels

Constructor Details

Size ()

Public constructor

Size (int width, int height)

Public constructor

Parameters:

  • width

    Width of screen in pixels

  • height

    Height of screen in pixels

Field Details

public int height

Height of the screen in pixels

public int width

Width if the screen in pixels

Method Details

public boolean equals (Object other)

For documentation, see java.lang.Object

Parameters:

  • other

public int hashCode ()

For documentation, see java.lang.Object

public boolean isNull ()

Has no dimensions

Returns:

Whether this object has no width and height

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.