Class Method

widgetSizeFromController:withAvailableGridPosition:

Get the widget size to use for widget addition for the given additional options controller and grid positions.


Declaration


+(HSWidgetSize)widgetSizeFromController:(id<HSWidgetAdditionalOptions)controller withAvailableGridPosition:(NSArray *)positions;

Parameters

Return Value

The widget size to use for adding the widget that may have been configured by the user in the given controller. The default implementation is to return controller.requestWidgetSize if valid, otherwise return [self minimumSize].

Related Links


Adding Widgets