Instance Method
initWithWidgetViewController:availablePositions:
Initialize a newly allocated preferences object with the given widget view controller and available positions.
Declaration
-(instancetype)initWithWidgetViewController:(HSWidgetViewController *)widgetViewController availablePositions:(NSArray *)positions;
Parameters
-
widgetViewController
widget view controller to manage user preferences for.
-
positions
An array of available widget positions that can be occupied.
Return Value
A preferences object initialized with the given widget view controller and available positions.
Related Links
Widget View Controller
-
HSWidgetViewController
A view controller that specializes in managing a widget view.