setCameraFocus method
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
- GemError.success on success
- GemError.invalidInput if the input is invalid
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']);
}