getDistance method
- int index
override
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, or0whenindexis out of range.
Implementation
@override
int getDistance(final int index) {
final OperationResult resultString = objectMethod(
pointerId,
'LandmarkAlarmsList',
'getDistance',
args: index,
);
return resultString['result'];
}