touchHandlerModifyVerticalAngleLimits property
Vertical angle (pitch) adjustment limits for user gestures during follow mode
Defines the minimum and maximum pitch angles users can apply via touch gestures while in follow mode. An empty range (0.0, 0.0) forbids vertical angle adjustment entirely.
Returns
- A tuple (min, max) of pitch angle limits in degrees. Default is (0.0, 0.0) meaning adjustment is forbidden
See also:
- touchHandlerModifyHorizontalAngleLimits - The horizontal angle limits counterpart
- touchHandlerModifyDistanceLimits - The distance limits counterpart
Implementation
(double, double) get touchHandlerModifyVerticalAngleLimits {
final OperationResult resultString = objectMethod(
pointerId,
'FollowPositionPreferences',
'getTouchHandlerModifyVerticalAngleLimits',
dependencyId: _mapPointerId,
);
final Map<String, dynamic> result =
resultString['result'] as Map<String, dynamic>;
final double first = result['first'];
final double second = result['second'];
return (first, second);
}
Set vertical pitch angle limits for user gestures during follow mode
Defines the range of pitch (tilt) angles users can apply via touch gestures. Use (0.0, 0.0) to disable vertical angle adjustment.
Parameters
angles: Tuple (min, max) of pitch angle limits in degrees. Use (0.0, 0.0) to forbid adjustment. Default: (0.0, 0.0)
Implementation
set touchHandlerModifyVerticalAngleLimits(final (double, double) angles) {
objectMethod(
pointerId,
'FollowPositionPreferences',
'setTouchHandlerModifyVerticalAngleLimits',
args: Pair<double, double>(angles.$1, angles.$2).toJson(),
dependencyId: _mapPointerId,
);
}