setCameraFocus method

GemError setCameraFocus(
  1. Point<double> pos
)

Set the follow position camera focus in viewport coordinates ( between 0.f = left / top and 1.f = right / bottom )

Parameters

  • IN pos The camera focus point

Returns

Throws

  • An exception if it fails.

Implementation

GemError setCameraFocus(final Point<double> pos) {
  final OperationResult resultString = objectMethod(
    _pointerId,
    'FollowPositionPreferences',
    'setCameraFocus',
    args: XyType<double>.fromPoint(pos),
  );

  return GemErrorExtension.fromCode(resultString['result']);
}