getDistance abstract method

int getDistance(
  1. int index
)

Distance in meters from the referenceCoordinates to the specified item.

If index is outside the valid range the method returns 0.

Parameters

  • index: Zero-based index of the alarm item.

Returns

  • int: Distance in meters to the item, or 0 when index is out of range.

Implementation

int getDistance(final int index);