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

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


Positions