Instance Method
containsSpaceForWidgetSize:
Return whether there is enough space available for widget of specified size.
Declaration
-(BOOL)containsSpaceForWidgetSize:(HSWidgetSize)size;
Parameters
-
size
size used to check if enough space is available.
Return Value
If the view controller was presented as additional options then it will return YES when there is enough space available for a widget of specified size. If instead the view controller was presented as preferences then it will return YES when there is enough space available for widget expansion to specified size. Otherwise returns NO.
Related Links
Checking Space Availability
-
- containsSpaceForGridPositions:
Return whether there is enough space available for grid positions.