setCurrentPosition method

int setCurrentPosition(
  1. int newPosition
)

Sets the current playback position.

Parameters

  • newPosition: The new position to set, in milliseconds from the beginning of the log or simulation.

Returns

  • The previous playback position in milliseconds.

See also:

Implementation

int setCurrentPosition(final int newPosition) {
  final OperationResult resultString = objectMethod(
    pointerId,
    'PlaybackContainer',
    'setCurrentPosition',
    args: newPosition,
  );
  return resultString['result'];
}