Class Method
canAddWidgetForAvailableGridPositions:
Get whether the widget can be added for given available grid positions.
Declaration
+(BOOL)canAddWidgetForAvailableGridPositions:(NSArray *)positions;
Parameters
-
positions
array of HSWidgetAvailablePositionObject objects (grid positions) that can be occupied by the widget.
Return Value
YES if given positions has available space to add widget; otherwise NO. The default implementation of this method is to check if positions contains enough space for minimumSize.
Related Links
Adding Widgets
-
+ isAvailable
Returns whether the widget is currently available for addition.
-
+ minimumSize
Gets the minimum size required to add the widget to page.
-
+ allowedInstancesPerPage
Return the number of allowed instances per page so that widget manager can restrict additional instances.