contentInset property

UIEdgeInsets get contentInset

The distance from the edges of the map view’s frame to the edges of the map view’s logical viewport.

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.

Changing the value of this property updates the map view immediately. If you want to animate the change, use the -setContentInset:animated:completionHandler: method instead.

Implementation

UIEdgeInsets get contentInset {
  final _ptr = pkg_ffi.calloc<UIEdgeInsets>();
  objc.useMsgSendVariants ? _objc_msgSend_ct4cu5Stret(_ptr, this.ref.pointer, _sel_contentInset) : _ptr.ref = _objc_msgSend_ct4cu5(this.ref.pointer, _sel_contentInset);
  final _finalizable = _ptr.cast<ffi.Uint8>().asTypedList(
      ffi.sizeOf<UIEdgeInsets>(), finalizer: pkg_ffi.calloc.nativeFree);
  return ffi.Struct.create<UIEdgeInsets>(_finalizable);

}
set contentInset (UIEdgeInsets value)

The distance from the edges of the map view’s frame to the edges of the map view’s logical viewport.

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.

Changing the value of this property updates the map view immediately. If you want to animate the change, use the -setContentInset:animated:completionHandler: method instead.

Implementation

set contentInset(UIEdgeInsets value) {
_objc_msgSend_1g8fos5(this.ref.pointer, _sel_setContentInset_, value);

}