setCamera$3 method

void setCamera$3(
  1. MLNMapCamera camera$1, {
  2. required double withDuration,
  3. CAMediaTimingFunction? animationTimingFunction,
  4. required UIEdgeInsets edgePadding,
  5. ObjCBlock<Void Function()>? completionHandler,
})

Moves the viewpoint to a different location with respect to the map with an optional transition duration and timing function, and optionally some additional padding on each side. 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 edgePadding The minimum padding (in screen points) that would be visible around the returned camera object if it were set as the receiver’s camera. @param completion The block to execute after the animation finishes.

Implementation

void setCamera$3(MLNMapCamera camera$1, {required double withDuration,CAMediaTimingFunction? animationTimingFunction,required UIEdgeInsets edgePadding,objc.ObjCBlock<ffi.Void Function()>? completionHandler}) {
_objc_msgSend_tm3gbn(this.ref.pointer, _sel_setCamera_withDuration_animationTimingFunction_edgePadding_completionHandler_, camera$1.ref.pointer, withDuration, animationTimingFunction?.ref.pointer ?? ffi.nullptr, edgePadding, completionHandler?.ref.pointer ?? ffi.nullptr);

}