getPreferences method

RoutePreferences getPreferences(
  1. int index
)

Get preferences of the route specified by index.

Parameters

  • IN index The index of the route in the current sort order.

Returns

  • The route preferences

Throws

  • An exception if it fails.

Implementation

RoutePreferences getPreferences(final int index) {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'RouteBookmarks',
    'getPreferences',
    args: index,
  );

  return RoutePreferences.fromJson(resultString['result']);
}