CircleMenuDelegate

@objc public protocol CircleMenuDelegate

CircleMenuDelegate

  • Tells the delegate the circle menu is about to draw a button for a particular index.

    Declaration

    Swift

    optional func circleMenu(circleMenu: CircleMenu, willDisplay button: UIButton, atIndex: Int)

    Parameters

    circleMenu

    The circle menu object informing the delegate of this impending event.

    button

    A circle menu button object that circle menu is going to use when drawing the row. Don’t change button.tag

    atIndex

    An button index.

  • Tells the delegate that a specified index is about to be selected.

    Declaration

    Swift

    optional func circleMenu(circleMenu: CircleMenu, buttonWillSelected button: UIButton, atIndex: Int)

    Parameters

    circleMenu

    A circle menu object informing the delegate about the impending selection.

    button

    A selected circle menu button. Don’t change button.tag

    atIndex

    Selected button index

  • Tells the delegate that the specified index is now selected.

    Declaration

    Swift

    optional func circleMenu(circleMenu: CircleMenu, buttonDidSelected button: UIButton, atIndex: Int)

    Parameters

    circleMenu

    A circle menu object informing the delegate about the new index selection.

    button

    A selected circle menu button. Don’t change button.tag

    atIndex

    Selected button index

  • Tells the delegate that the menu was collapsed - the cancel action.

    Declaration

    Swift

    optional func menuCollapsed(circleMenu: CircleMenu)

    Parameters

    circleMenu

    A circle menu object informing the delegate about the new index selection.