Class Method
createOptionsFromController:withAvailableGridPosition:
Create options dictionary to use for widget addition for the given additional options controller and grid positions.
Declaration
+(NSDictionary *)createOptionsFromController:(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 options or nil if no additional options were presented
-
positions
array of available grid positions
Return Value
A dictionary containing the options that were configured by the user in the given controller. The default implementation is to return a copy of controller's widgetOptions.
Related Links
Adding Widgets
-
+ addNewWidgetAdditionalOptionsControllerClass
Specify the class used for the additional options during widget adding.
-
+ widgetSizeFromController:withAvailableGridPosition:
Get the widget size to use for widget addition for the given additional options controller and grid positions.