DJI Mobile SDK Documentation

      class DUXWidgetCollectionViewStacks

      @interface DUXWidgetCollectionViewStacks : DUXWidgetCollectionView
      Header:DUXWidgetCollectionViewStacks.h
      Inherits From:DUXWidgetCollectionView
      Description:

      A special widget collection view build around a stack layout which allows widget to be placed inside either stacks.

      Class Members:
      enum DUXWidgetCollectionViewStack
      typedef NS_ENUM(NSUInteger, DUXWidgetCollectionViewStack)
      Header:DUXWidgetCollectionViewStacks.h
      Description:

      An enum defining each stack of the widgetCollectionStacksView

      Enum Members:
      DUXWidgetCollectionViewStackNoneNo stack.
      DUXWidgetCollectionViewStackFirstFirst Stack. Leading for horizontal, top for vertical
      DUXWidgetCollectionViewStackLastLast Stack. Trailing for horizontal, bottom for vertical.
      method addWidget:to:withEdgeInset
      - (void)addWidget:(UIView<DUXWidgetProtocol> *)newWidget
      to:(DUXWidgetCollectionViewStack)stack
      withEdgeInset:(UIEdgeInsets)edgeInset
      Header:DUXWidgetCollectionViewStacks.h
      Description:

      Adds the passed widget to the given stack with the passed edget insets.

      Input Parameters:
      UIView<DUXWidgetProtocol> * newWidgetThe widget being added.
      DUXWidgetCollectionViewStack stackThe stack the widget is being added to.
      UIEdgeInsets edgeInsetThe desired edge inset of the widget.
      method moveWidget:to
      - (void)moveWidget:(UIView<DUXWidgetProtocol> *)widget
      to:(DUXWidgetCollectionViewStack)stack
      Header:DUXWidgetCollectionViewStacks.h
      Description:

      Moves the passed widget to the given stack with the passed edget insets.

      Input Parameters:
      UIView<DUXWidgetProtocol> * widgetThe widget being moved.
      DUXWidgetCollectionViewStack stackThe stack the widget is being moved to.
      method stackOfWidget
      - (DUXWidgetCollectionViewStack)stackOfWidget:(UIView<DUXWidgetProtocol> *)widget
      Header:DUXWidgetCollectionViewStacks.h
      Description:

      Returns the current stack of the passed widget.

      Input Parameters:
      UIView<DUXWidgetProtocol> * widgetThe widget whose stack is returned.
      Return:
      DUXWidgetCollectionViewStackthe stack of the widget