CariocaDelegate

public protocol CariocaDelegate: class

The menu’s events delegate

  • The user selected a menu item. The menu will close and hide.

    Declaration

    Swift

    func cariocamenu(_ menu: CariocaMenu, didSelect item: CariocaMenuItem, at index: Int)

    Parameters

    menu

    The menu instance

    item

    The selected menu item

    index

    The index of the selected item

  • Menu will open

    Declaration

    Swift

    func cariocamenu(_ menu: CariocaMenu, willOpenFromEdge edge: UIRectEdge)

    Parameters

    menu

    The menu instance

    edge

    The opening edge of the menu