Hierarchy

  • LayoutManagerIOSParams

Events

targetContentOffset: ((proposedContentOffset: Point2D, velocity: Point2D) => Point2D)

Type declaration

    • (proposedContentOffset: Point2D, velocity: Point2D): Point2D
    • If you want the scrolling behavior to snap to specific boundaries, you can override this method and use it to change the point at which to stop. For example, you might use this method to always stop scrolling on a boundary between items, as opposed to stopping in the middle of an item.For Android, you can use UI.GridView#snapToAlignment. targetContentOffset

      Deprecated

      Ios

      Since

      3.2.0

      Example

      import LayoutManager from '@smartface/native/ui/layoutmanager';

      const layoutManager = new LayoutManager();
      layoutManager.on(LayoutManager.Events.TargetContentOffset, (params) => {
      console.info('targetContentOffset', params);
      });

      Parameters

      Returns Point2D

Generated using TypeDoc