getLandmarkPosition method

int getLandmarkPosition(
  1. int landmarkId
)

Get the position of the landmark with the specified Landmark.id

The position is 0 based

Parameters

  • IN landmarkId The id of the landmark

Returns

  • The position of the landmark if it is in the session, GemError.notFound.code otherwise

Throws

  • An exception if it fails

Implementation

int getLandmarkPosition(final int landmarkId) {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'LandmarkBrowseSession',
    'getLandmarkPos',
    args: landmarkId,
  );

  return resultString['result'];
}