Instance Method
updateForExpandOrShrinkToWidgetSize:
Update the widget size to the specfied size structure (also updates grid positions). The delegate may animate this change.
Declaration
-(void)updateForExpandOrShrinkToWidgetSize:(HSWidgetSize)size;
Parameters
-
size
size used to check if enough space is available for expanding/shrinking. If there is enough space then widget's grid positions are updated to the match the size.
Related Links
Dynamic Sizing
- Adding Dynamic Size
-
- containsSpaceToExpandOrShrinkToGridPositions:
Return whether there is enough available space to expand or shrink to specified grid positions.
-
- containsSpaceToExpandOrShrinkToWidgetSize:
Return whether there is enough available space to expand or shrink to specified size structure.
-
- updateForExpandOrShrinkToGridPositions:
Update the widget to the specfied grid positions.