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
-
controller
instance of the additional options class that was displayed to the user which may contain user selected widget size or nil if no additional options were presented
-
positions
array of available grid positions
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
-
+ addNewWidgetAdditionalOptionsControllerClass
Specify the class used for the additional options during widget adding.
-
+ createOptionsFromController:withAvailableGridPosition:
Create options dictionary to use for widget addition for the given additional options controller and grid positions.