setCamera$2 method
void
setCamera$2(
- MLNMapCamera camera$1, {
- required double withDuration,
- CAMediaTimingFunction? animationTimingFunction,
- ObjCBlock<
Void Function()> ? completionHandler,
Moves the viewpoint to a different location with respect to the map with an optional transition duration and timing function. For animated changes, wait until the map view has finished loading before calling this method.
@param camera The new viewpoint.
@param duration The amount of time, measured in seconds, that the transition
animation should take. Specify 0 to jump to the new viewpoint
instantaneously.
@param function A timing function used for the animation. Set this parameter to
nil for a transition that matches most system animations. If the duration
is 0, this parameter is ignored.
@param completion The block to execute after the animation finishes.
Implementation
void setCamera$2(MLNMapCamera camera$1, {required double withDuration,CAMediaTimingFunction? animationTimingFunction,objc.ObjCBlock<ffi.Void Function()>? completionHandler}) {
_objc_msgSend_1s40ged(this.ref.pointer, _sel_setCamera_withDuration_animationTimingFunction_completionHandler_, camera$1.ref.pointer, withDuration, animationTimingFunction?.ref.pointer ?? ffi.nullptr, completionHandler?.ref.pointer ?? ffi.nullptr);
}