Protocol

HSWidgetDelegate

Methods for managing widgets, performing accessory events and notify option changes.


Declaration


@protocol HSWidgetDelegate

Overview

HSWidgets has a widget manager that conforms to this protocol so these methods should never need to be implemented. However, advanced widgets can call these methods instead of using the convenience methods for more control.

Call the methods of this protocol for:

  • Removing widget from page
  • Displaying settings page
  • Notifying widget manager of options changes so that it can save them
  • Dragging management
  • Checking and performing expand/shrink accessories
  • Converting preferred position to a valid position on page

Topics


Perform Accessory Events


Notify of Options Changes


Widget Dragging


Widget Sizing


Getting Valid Origin

Related Links


Widget