setContentInset$1 method

void setContentInset$1(
  1. UIEdgeInsets contentInset$1, {
  2. required bool animated,
  3. ObjCBlock<Void Function()>? completionHandler,
})

Sets the distance from the edges of the map view’s frame to the edges of the map view’s logical viewport with an optional transition animation and completion handler.

When the value of this property is equal to UIEdgeInsetsZero, viewport properties such as centerCoordinate assume a viewport that matches the map view’s frame. Otherwise, those properties are inset, excluding part of the frame from the viewport. For instance, if the only the top edge is inset, the map center is effectively shifted downward.

When the map view’s superview is an instance of UIViewController whose automaticallyAdjustsScrollViewInsets property is YES, the value of this property may be overridden at any time.

The usage of automaticallyAdjustsScrollViewInsets has been deprecated use the map view’s property MLNMapView/automaticallyAdjustsContentInsetinstead.

@param contentInset The new values to inset the content by. @param animated Specify YES if you want the map view to animate the change to the content inset or NO if you want the map to inset the content immediately. @param completion The block executed after the animation finishes.

Implementation

void setContentInset$1(UIEdgeInsets contentInset$1, {required bool animated,objc.ObjCBlock<ffi.Void Function()>? completionHandler}) {
_objc_msgSend_1vx0lfy(this.ref.pointer, _sel_setContentInset_animated_completionHandler_, contentInset$1, animated, completionHandler?.ref.pointer ?? ffi.nullptr);

}