DJI Mobile SDK Documentation

      class DUXWidgetCollectionViewLayout

      @interface DUXWidgetCollectionViewLayout : UICollectionViewLayout
      Header:DUXWidgetCollectionViewLayout.h
      Inherits From:UICollectionViewLayout
      Description:

      A base sub class of UICollectionView to be used for all custom collection layout used in standard UXSDK objects.

      Class Members:
      property scrollDirection
      @property(nonatomic) UICollectionViewScrollDirection scrollDirection
      Header:DUXWidgetCollectionViewLayout.h
      Description:

      The scrollDirection of the layout.

      property minimumInteritemSpacing
      @property(nonatomic) CGFloat minimumInteritemSpacing
      Header:DUXWidgetCollectionViewLayout.h
      Description:

      The minimum space to be kept between items.

      method widthSumOfWidgets
      - (CGFloat)widthSumOfWidgets:(NSArray *)widgets
      Header:DUXWidgetCollectionViewLayout.h
      Description:

      Convenience calculation method calculating the total width of all widgets in the passed array.

      Input Parameters:
      NSArray * widgetsThe widgets whose total width is desired.
      Return:
      CGFloata width in pixels
      method heightSumOfWidgets
      - (CGFloat)heightSumOfWidgets:(NSArray *)widgets
      Header:DUXWidgetCollectionViewLayout.h
      Description:

      Convenience calculation method calculating the total height of all widgets in the passed array.

      Input Parameters:
      NSArray * widgetsThe widgets whose total height is desired.
      Return:
      CGFloata height in pixels
      method totalWidgetWidth
      - (CGFloat)totalWidgetWidth
      Header:DUXWidgetCollectionViewLayout.h
      Description:

      Convenience calculation method calculating the total width of all widgets in the associated collection.

      Return:
      CGFloata width in pixels
      method totalWidgetHeight
      - (CGFloat)totalWidgetHeight
      Header:DUXWidgetCollectionViewLayout.h
      Description:

      Convenience calculation method calculating the total height of all widgets in the associated collection.

      Return:
      CGFloata height in pixels