setCurrentPosition method

int setCurrentPosition(
  1. int newPosition
)

Sets the current position (milliseconds from begin/departure/starting point).

Parameters

  • IN newPosition The new position to be set

Returns

  • The old playback position in milliseconds.

Throws

  • An exception if it fails

Implementation

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