addTrips method

int addTrips(
  1. String filename
)

Add trips from the given filename.

Parameters

  • IN filename The imported bookmarks file path.

Returns

  • The number of imported routes on success.
  • The GemError.code on error.

Throws

  • An exception if it fails.

Implementation

int addTrips(final String filename) {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'RouteBookmarks',
    'addTrips',
    args: filename,
  );

  return resultString['result'];
}