timeBeforeTurnPresentation property
Time interval before starting turn presentation during navigation
This setting controls how many seconds before an upcoming turn the map camera should start presenting the turn animation. Set via the timeBeforeTurnPresentation setter.
Returns
- The time interval in seconds (-1 means SDK default is used)
Implementation
int get timeBeforeTurnPresentation {
final OperationResult resultString = objectMethod(
pointerId,
'FollowPositionPreferences',
'getTimeBeforeTurnPresentation',
dependencyId: _mapPointerId,
);
return resultString['result'];
}
Configure turn presentation timing during navigation
Sets how many seconds before an upcoming turn the map camera should start presenting the turn animation.
Parameters
val: Time interval in seconds before starting turn presentation. Use -1 to apply SDK default value
Implementation
set timeBeforeTurnPresentation(final int val) {
objectMethod(
pointerId,
'FollowPositionPreferences',
'setTimeBeforeTurnPresentation',
args: val,
dependencyId: _mapPointerId,
);
}