@interface DUXWidgetCollectionView : UICollectionView <DUXWidgetCollectionViewProtocol> |
| Header: | DUXWidgetCollectionView.h |
| Inherits From: | UICollectionView |
This subclass of UICollectionView is used as a base class for all predefined views under control by any of the predefined collection view controllers. This implements the DUXWidgetCollectionViewProtocol which enables the control over widgets.
@property DUXWidgetInteractionExpectionLevel interactionExpectationLevel |
| Header: | DUXWidgetCollectionView.h |
The interaction expectation level to be applied by default to all widgets inserted into this collection view.
@property (readonly, nonatomic, nonnull) NSArray <DUXWidgetItem *> *widgets |
| Header: | DUXWidgetCollectionView.h |
The array of DUXWidgetItem widgets items.
@protocol DUXWidgetCollectionViewProtocol <NSObject> |
| Header: | DUXWidgetCollectionViewProtocol.h |
| Inherits From: | NSObject |
This protocol defines the behavior expected for view to become widget collection views.
@property (readonly, nonatomic, nonnull) NSArray <DUXWidgetItem *> *widgets |
| Header: | DUXWidgetCollectionViewProtocol.h |
The array of DUXWidgetItem widgets items.
@required |
| Header: | DUXWidgetCollectionViewProtocol.h |
The index in the widget item array of the passed widget.
| nonnull UIView <DUXWidgetProtocol> * widget | The widget whose index is desired. |
| NSInteger | An index |
@required |
| Header: | DUXWidgetCollectionViewProtocol.h |
Adds the passed widget to the collection. The collection layout system will then place it where it belongs visually.
| nonnull UIView<DUXWidgetProtocol> * newWidget | The widget being added. |
@required |
| Header: | DUXWidgetCollectionViewProtocol.h |
Adds the passed widgets and applies the given edge insets.
| nonnull UIView<DUXWidgetProtocol> * newWidget | The widget being added. |
| UIEdgeInsets edgeInset | The desired edge inset of the widget. |
@required |
| Header: | DUXWidgetCollectionViewProtocol.h |
Removes the widget from the collection. Its widgetItem will be removed too.
| nonnull UIView<DUXWidgetProtocol> * oldWidget | The widget being removed. |
@required |
| Header: | DUXWidgetCollectionViewProtocol.h |
Inserts the passed widget at the passed index.
| nonnull UIView<DUXWidgetProtocol> * widget | The widget being inserted. |
| NSUInteger index | The desired index of the widget. |
@required |
| Header: | DUXWidgetCollectionViewProtocol.h |
Inserts the passed widget at the passed index and then applies the given edge insets.
| nonnull UIView<DUXWidgetProtocol> * newWidget | The widget being inserted. |
| UIEdgeInsets edgeInset | The desired edge inset of the widget. |
| NSUInteger index | The desired index of the widget. |
@required |
| Header: | DUXWidgetCollectionViewProtocol.h |
Extracts the widgets from the widgetItems array passed and returns them into a new array.
| nonnull NSArray <DUXWidgetItem *> * widgetItems | The widgets extracted from the widgetItems array. |
| nullable NSArray <DUXWidget *> * | a UIView <DUXWidgetProtocol> * object |