Instance Method
canWidget:expandOrShrinkToGridPositions:
Return whether widget can expand or shrink to the specified widget positions.
Declaration
-(BOOL)canWidget:(HSWidgetViewController *)widgetViewController expandOrShrinkToGridPositions:(NSArray *)positions;
Parameters
-
widgetViewController
widget view controller to examine
-
positions
array of grid positions that widget will occupy after expand/shrink
Return Value
YES if the specified widget positions are available for the widget to expand/shrink to; otherwise NO.
The delegate returns NO if the widget positions match current widget positions to reduce redundant code execution. If the new widget positions doesn't require any new grid positions than what it already contains then it returns YES (i.e. for shrinking).
Related Links
Widget Sizing
-
- updatePageForExpandOrShrinkOfWidget:toGridPositions:
Expand or shrink widget to the specified widget positions.
Positions
-
HSWidgetPositionObject
An object wrapper for widget position structure.